apps/meali/resources/deployment.yaml

65 lines
1.6 KiB
YAML
Raw Normal View History

2024-12-04 20:09:45 +00:00
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: meali
spec:
2024-12-04 20:14:36 +00:00
replicas: 1
strategy:
type: Recreate
2024-12-04 20:09:45 +00:00
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
2024-12-04 20:14:36 +00:00
memory: 500Mi
2024-12-04 20:09:45 +00:00
requests:
2024-12-04 20:14:36 +00:00
cpu: 150m
memory: 450Mi
volumeMounts:
- name: app-data
mountPath: /app/data/
volumes:
- name: app-data
persistentVolumeClaim:
claimName: meali-data
2024-12-04 20:09:45 +00:00
securityContext:
2024-12-04 20:14:36 +00:00
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
2024-12-04 20:09:45 +00:00
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- fider
topologyKey: topology.kubernetes.io/zone