fusero-app-boilerplate/chart/templates/postgres-deployment.yaml
liquidrinu 5e12a9cb25
Some checks failed
Deploy to Production / Build and Deploy (push) Failing after 6m8s
fix: quote postgres env values for Helm rendering
2025-05-24 00:46:28 +02:00

43 lines
1.2 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: postgres
spec:
replicas: 1
selector:
matchLabels:
app: postgres
template:
metadata:
labels:
app: postgres
spec:
containers:
- name: postgres
image: {{ .Values.postgres.image }}
ports:
- containerPort: 5432
env:
- name: POSTGRES_DB
value: "{{ .Values.postgres.dbName }}"
- name: POSTGRES_USER
value: "{{ .Values.postgres.user }}"
- name: POSTGRES_PASSWORD
value: "{{ .Values.postgres.password }}"
volumeMounts:
- mountPath: /var/lib/postgresql/data
name: postgres-data
- mountPath: /etc/postgresql/pg_hba.conf
name: postgres-config
subPath: pg_hba.conf
- mountPath: /etc/postgresql/postgresql.conf
name: postgres-config
subPath: postgresql.conf
volumes:
- name: postgres-data
persistentVolumeClaim:
claimName: postgres-pvc-fresh
- name: postgres-config
configMap:
name: postgres-config