apps/meali/resources/deployment.yaml
Peter Kurfer 98c3a63bd8
All checks were successful
Renovate / renovate (push) Successful in 1m24s
feat(meali): add data volume
2024-12-04 21:15:47 +01:00

62 lines
1.6 KiB
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: meali
spec:
replicas: 2
selector:
matchLabels:
app.kubernetes.io/name: meali
template:
metadata:
labels:
app.kubernetes.io/name: meali
spec:
containers:
- name: meali
image: meali
imagePullPolicy: Always
ports:
- containerPort: 9000
protocol: TCP
name: web
env:
- name: POSTGRES_URL_OVERRIDE
valueFrom:
secretKeyRef:
name: db-credentials-meali
key: POSTGRES_URL
envFrom:
- secretRef:
name: meali-config
resources:
limits:
cpu: 200m
memory: 200Mi
requests:
cpu: 50m
memory: 50Mi
volumeMounts:
- name: app-data
mountPath: /app/data/
volumes:
- name: app-data
persistentVolumeClaim:
claimName: meali-data
securityContext:
runAsUser: 1001
runAsGroup: 1001
fsGroup: 1001
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- fider
topologyKey: topology.kubernetes.io/zone