diff --git a/manifests/02-deployments/deployment-postgres.yaml b/manifests/02-deployments/deployment-postgres.yaml index 1a3dd0f..07b4a25 100644 --- a/manifests/02-deployments/deployment-postgres.yaml +++ b/manifests/02-deployments/deployment-postgres.yaml @@ -14,32 +14,32 @@ spec: app: postgres spec: containers: - - name: postgres - image: postgres:latest - imagePullPolicy: "IfNotPresent" - env: - - name: POSTGRES_USER - valueFrom: - secretKeyRef: - name: postgres-secret - key: postgres-root-username - - name: POSTGRES_PASSWORD - valueFrom: - secretKeyRef: - name: postgres-secret - key: postgres-root-password - - name: POSTGRES_DB - valueFrom: - configMapKeyRef: - name: postgres-configmap - key: postgres-dbname - volumeMounts: - - mountPath: /var/lib/postgresql/data - name: postgredb - volumes: - - name: postgredb - persistentVolumeClaim: - claimName: postgres-pv-claim + - name: postgres + image: postgres:latest + imagePullPolicy: "IfNotPresent" + env: + - name: POSTGRES_USER + valueFrom: + secretKeyRef: + name: postgres-secret + key: postgres-root-username + - name: POSTGRES_PASSWORD + valueFrom: + secretKeyRef: + name: postgres-secret + key: postgres-root-password + - name: POSTGRES_DB + valueFrom: + configMapKeyRef: + name: postgres-configmap + key: postgres-dbname + volumeMounts: + - mountPath: /var/lib/postgresql/data + name: postgredb + volumes: + - name: postgredb + persistentVolumeClaim: + claimName: postgres-pv-claim --- kind: PersistentVolume apiVersion: v1