From 46d1a6171e061d9f4bd2a05d721d03de34e6c84e Mon Sep 17 00:00:00 2001
From: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Date: Thu, 23 Apr 2020 13:19:43 +0200
Subject: [Contrib] Make Postgres work when using dynamic PV

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
---
 .../components/netbox/charts/netbox-postgres/templates/deployment.yaml  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'kubernetes/contrib/components/netbox/charts/netbox-postgres')

diff --git a/kubernetes/contrib/components/netbox/charts/netbox-postgres/templates/deployment.yaml b/kubernetes/contrib/components/netbox/charts/netbox-postgres/templates/deployment.yaml
index 45468e4969..3a4bb90b98 100755
--- a/kubernetes/contrib/components/netbox/charts/netbox-postgres/templates/deployment.yaml
+++ b/kubernetes/contrib/components/netbox/charts/netbox-postgres/templates/deployment.yaml
@@ -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 }}
-- 
cgit