Files
Kubernetes-Manifests/applications/immich/postgres/immich-postgres-statefulset.yaml
T
Jeffrey c408522988 immich: migrate to envFrom with per-container InfisicalSecrets
Flat CR narrowed to recursive: false so it keeps serving the SMB credentials that immich-data-smb references by name.
2026-08-23 22:15:10 +02:00

40 lines
1.0 KiB
YAML

apiVersion: apps/v1
kind: StatefulSet
metadata:
namespace: immich
name: immich-postgresql
spec:
replicas: 1
serviceName: immich-postgresql
selector:
matchLabels:
app: immich-postgresql
template:
metadata:
labels:
app: immich-postgresql
spec:
restartPolicy: Always
terminationGracePeriodSeconds: 60
containers:
- name: immich-postgresql
image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0
resources:
requests:
memory: "256Mi"
cpu: "100m"
limits:
memory: "1Gi"
cpu: "500m"
ports:
- containerPort: 5432
volumeMounts:
- name: immich-postgresql-immich
mountPath: /var/lib/postgres
envFrom:
- secretRef:
name: immich-postgres-secrets
volumes:
- name: immich-postgresql-immich
persistentVolumeClaim:
claimName: immich-postgresql-pvc