Mounting the postgres config in xos-db
Change-Id: I4a7765f4afae791a8c2d8bea5f742b93db4649d0
diff --git a/xos-db/templates/db-deployment.yaml b/xos-db/templates/db-deployment.yaml
index 9814677..4f0bee6 100644
--- a/xos-db/templates/db-deployment.yaml
+++ b/xos-db/templates/db-deployment.yaml
@@ -45,11 +45,22 @@
key: password
- name: PGDATA
value: "/var/lib/postgresql/data/pgdata"
-{{- if .Values.needDBPersistence }}
volumeMounts:
+ - name: xos-db-config
+ mountPath: /usr/local/share/postgresql/postgresql.conf.sample
+ subPath: config/postgresql.conf.sample
+{{- if .Values.needDBPersistence }}
- name: db-pv-storage
mountPath: "/var/lib/postgresql/data"
+{{- end }}
volumes:
+ - name: xos-db-config
+ configMap:
+ name: xos-db
+ items:
+ - key: config
+ path: config/postgresql.conf.sample
+{{- if .Values.needDBPersistence }}
- name: db-pv-storage
persistentVolumeClaim:
claimName: {{ .Values.pvClaimName }}