diff --git a/k8s/example2-single-statefulset/nodes/node.yml b/k8s/example2-single-statefulset/nodes/node.yml index c07c5792..81ff6647 100644 --- a/k8s/example2-single-statefulset/nodes/node.yml +++ b/k8s/example2-single-statefulset/nodes/node.yml @@ -68,6 +68,8 @@ spec: secretKeyRef: name: mysystem-secret key: app.db.password + - name: PGDATA + value: /var/lib/postgresql/data/pgdata # Cluster configs - name: "CLUSTER_NAME" diff --git a/k8s/helm/PostDock/templates/postgres/statefulset.yaml b/k8s/helm/PostDock/templates/postgres/statefulset.yaml index e4e6e59d..fee76f8a 100644 --- a/k8s/helm/PostDock/templates/postgres/statefulset.yaml +++ b/k8s/helm/PostDock/templates/postgres/statefulset.yaml @@ -64,6 +64,8 @@ spec: secretKeyRef: name: {{ .Values.postDock.name }}-secret key: app.db.password + - name: PGDATA + value: /var/lib/postgresql/data/pgdata - name: "CLUSTER_NAME" valueFrom: configMapKeyRef: