projects
/
arvados-k8s.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
support persistent volumes for postgres and the keep store
[arvados-k8s.git]
/
charts
/
arvados
/
templates
/
postgres-deployment.yaml
diff --git
a/charts/arvados/templates/postgres-deployment.yaml
b/charts/arvados/templates/postgres-deployment.yaml
index 786edc367092453e228266a9625e11b5af805d82..8462bb6d5e44ded48c3026bf0b589e1ca02e9e4e 100644
(file)
--- 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:
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
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
volumes:
- name: postgres-configmap
configMap:
name: postgres-configmap
+ {{- if .Values.postgres.persistence.enabled }}
+ - name: postgres-storage
+ persistentVolumeClaim:
+ claimName: {{ .Release.Name }}-postgres-pvc
+ {{- end }}