Files
Kubernetes-Build/postgres/templates/deploy.yaml
T
Janik von Rotz 3d03a93ed1 feat(nextcloud): standardize resource naming and enhance configurability
- Prefix all object names with `{{ .Release.Name }}-` as per AGENTS.md guidelines
- Rename persistent volume claims to follow `data-$CHART_NAME` pattern
- Update backup configuration to use generic secret and backup names
- Add troubleshooting section for config.php updates in README
- Improve domain configuration in ConfigMap to support custom domains
- Parameterize storage size in values.yaml with default set to 40Gi
- Disable collabora by default and adjust related configurations
- Align postgres deployment with new naming conventions
- Remove outdated job template for occ commands
- Update documentation examples with dynamic password generation
2025-11-12 12:56:20 +01:00

47 lines
1.3 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-postgres
spec:
replicas: 1
selector:
matchLabels:
app: postgres
template:
metadata:
labels:
app: postgres
spec:
containers:
- name: postgres
image: {{.Values.image }}
ports:
- containerPort: {{ .Values.port }}
env:
- name: POSTGRES_DB
value: {{ .Values.db }}
- name: POSTGRES_USER
value: {{ .Values.user }}
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: {{ .Values.secretRef }}
key: {{ .Values.userPasswordKey }}
- name: PGDATABASE
value: {{ .Values.db }}
- name: PGUSER
value: {{ .Values.user }}
- name: PGPASSWORD
valueFrom:
secretKeyRef:
name: {{ .Values.secretRef }}
key: {{ .Values.userPasswordKey }}
volumeMounts:
- mountPath: /var/lib/postgresql/data/
name: postgres
subPath: pgdata
volumes:
- name: postgres
persistentVolumeClaim:
claimName: data-postgres