Files
Kubernetes-Manifests/applications/zipline/postgres/zipline-postgres-statefulset.yaml
T
Jeffrey 10545c03be searxng: migrate to envFrom; move remaining literals into Infisical
Non-secret config now lives in Infisical alongside the secrets, so containers carry envFrom only and no loose env entries.
2026-08-23 20:34:38 +02:00

41 lines
1003 B
YAML

apiVersion: apps/v1
kind: StatefulSet
metadata:
namespace: zipline
name: zipline-postgresql
spec:
replicas: 1
selector:
matchLabels:
app: zipline-postgresql
serviceName: zipline-postgresql
template:
metadata:
labels:
app: zipline-postgresql
spec:
restartPolicy: Always
terminationGracePeriodSeconds: 60
containers:
- name: zipline-postgresql
image: postgres:15
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 500m
memory: 512Mi
ports:
- containerPort: 5432
volumeMounts:
- name: zipline-postgresql-database
mountPath: /var/lib/postgres
envFrom:
- secretRef:
name: zipline-postgres-secrets
volumes:
- name: zipline-postgresql-database
persistentVolumeClaim:
claimName: zipline-postgresql-pvc