apiVersion: apps/v1 kind: StatefulSet metadata: name: authentik-postgresql namespace: authentik spec: serviceName: authentik-postgresql replicas: 1 selector: matchLabels: app: authentik-postgresql template: metadata: labels: app: authentik-postgresql spec: containers: - name: authentik-postgresql image: postgres:16-alpine ports: - containerPort: 5432 envFrom: - secretRef: name: authentik-postgres-secrets volumeMounts: - name: data mountPath: /var/lib/postgresql/data resources: requests: cpu: 100m memory: 256Mi limits: memory: 512Mi volumes: - name: data persistentVolumeClaim: claimName: authentik-postgres-data