apps/fider/resources/deployment.yaml
Peter Kurfer 6b79d1fcf3
All checks were successful
Renovate / renovate (push) Successful in 38s
feat(fider): switch to new DB
2024-08-15 14:53:18 +02:00

55 lines
1.4 KiB
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: fider
spec:
replicas: 2
selector:
matchLabels:
app.kubernetes.io/name: fider
template:
metadata:
labels:
app.kubernetes.io/name: fider
spec:
containers:
- name: fider
image: docker.io/getfider/fider:stable
imagePullPolicy: Always
ports:
- containerPort: 3000
protocol: TCP
name: web
env:
- name: GOMEMLIMIT
valueFrom:
resourceFieldRef:
resource: limits.memory
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: db-credentials-fider
key: PQ_URL
envFrom:
- secretRef:
name: fider-config
resources:
limits:
cpu: 200m
memory: 200Mi
requests:
cpu: 50m
memory: 50Mi
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- fider
topologyKey: topology.kubernetes.io/zone