Files
Kubernetes-Manifests/applications/zipline/postgres/zipline-postgres-statefulset.yaml
T
Jeffrey 14ef1c6e91 zipline: migrate to envFrom with per-container InfisicalSecrets
Flat CR narrowed to recursive: false so it keeps serving the SMB mount credentials that zipline-uploads-pv references by name.
2026-08-23 20:08:43 +02:00

44 lines
1.1 KiB
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
env:
- name: PGDATA
value: /var/lib/postgres/data
volumes:
- name: zipline-postgresql-database
persistentVolumeClaim:
claimName: zipline-postgresql-pvc