[Contrib] Make Postgres work when using dynamic PV 95/106495/1
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Thu, 23 Apr 2020 11:19:43 +0000 (13:19 +0200)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Thu, 23 Apr 2020 11:28:54 +0000 (13:28 +0200)
postgres was not working with dynamic PV because of lost+found folder.
We changed the mount path to make it work.

Issue-ID: OOM-1227
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: Id15fd089c56e339dbc5939cd28207b535e8ab86b

kubernetes/contrib/components/awx/charts/awx-postgres/templates/deployment.yaml
kubernetes/contrib/components/netbox/charts/netbox-postgres/templates/deployment.yaml

index 67d13cf..5631528 100755 (executable)
@@ -60,7 +60,7 @@ spec:
           name: localtime
           readOnly: true
         - name: {{ include "common.fullname" . }}-data
-          mountPath: /var/lib/postgresql/data
+          mountPath: /var/lib/postgresql/
         resources:
 {{ include "common.resources" . | indent 12 }}
       {{- if .Values.nodeSelector }}
index 45468e4..3a4bb90 100755 (executable)
@@ -50,7 +50,7 @@ spec:
           name: localtime
           readOnly: true
         - name: {{ include "common.fullname" . }}-data
-          mountPath: /var/lib/postgresql/data
+          mountPath: /var/lib/postgresql/
         resources:
 {{ include "common.resources" . | indent 12 }}
       {{- if .Values.nodeSelector }}