X-Git-Url: https://git.arvados.org/arvados-k8s.git/blobdiff_plain/792939ae237d5904583477a73fdce8bf00568590..5236aa391c0e93691f4543bc06f204592513cbf1:/charts/arvados/templates/postgres-deployment.yaml diff --git a/charts/arvados/templates/postgres-deployment.yaml b/charts/arvados/templates/postgres-deployment.yaml index 786edc3..8462bb6 100644 --- a/charts/arvados/templates/postgres-deployment.yaml +++ b/charts/arvados/templates/postgres-deployment.yaml @@ -27,13 +27,22 @@ spec: image: "postgres:9.5" imagePullPolicy: {{ .Values.image.pullPolicy }} env: - - name: POSTGRES_HOST_AUTH_METHOD - value: "trust" + - name: POSTGRES_HOST_AUTH_METHOD + value: "trust" volumeMounts: - name: postgres-configmap mountPath: /docker-entrypoint-initdb.d/create_dbs.sh subPath: create_dbs.sh + {{- if .Values.postgres.persistence.enabled }} + - name: postgres-storage + mountPath: /var/lib/postgresql/data + {{- end }} volumes: - name: postgres-configmap configMap: name: postgres-configmap + {{- if .Values.postgres.persistence.enabled }} + - name: postgres-storage + persistentVolumeClaim: + claimName: {{ .Release.Name }}-postgres-pvc + {{- end }}