From 736ea0363144d3a48287e3eebb1d6ec2439713ec Mon Sep 17 00:00:00 2001 From: Tommy Date: Sun, 29 Oct 2023 13:55:41 +0100 Subject: [PATCH] Debug permission issues with mounted filesystem (PV) --- charts/conduit/Chart.yaml | 2 +- charts/conduit/templates/deployment.yaml | 7 ++++--- charts/conduit/templates/pvc.yaml | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/charts/conduit/Chart.yaml b/charts/conduit/Chart.yaml index 9c159fc..3f8511c 100644 --- a/charts/conduit/Chart.yaml +++ b/charts/conduit/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: conduit description: Conduit is a simple, fast and reliable chat server powered by Matrix. type: application -version: 0.2.4 +version: 0.2.5 appVersion: "0.6.0" diff --git a/charts/conduit/templates/deployment.yaml b/charts/conduit/templates/deployment.yaml index 4012206..0e31c47 100644 --- a/charts/conduit/templates/deployment.yaml +++ b/charts/conduit/templates/deployment.yaml @@ -62,7 +62,7 @@ spec: - name: "CONDUIT_SERVER_NAME" value: {{ .Values.conduit.server_name | quote }} - name: "CONDUIT_DATABASE_PATH" - value: "/var/local/matrix-conduit" + value: "/var/lib/conduit" - name: "CONDUIT_DATABASE_BACKEND" value: "rocksdb" - name: "CONDUIT_ALLOW_CHECK_FOR_UPDATE" @@ -97,7 +97,8 @@ spec: value: "" volumeMounts: - name: "data" - mountPath: "/var/local/matrix-conduit" + mountPath: "/var/lib/conduit" + readOnly: false {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} @@ -114,7 +115,7 @@ spec: - name: "data" {{- if .Values.persistence.enabled }} persistentVolumeClaim: - claimName: {{ if .Values.persistence.existingClaim }}{{ .Values.persistence.existingClaim }}{{- else }}{{ template "conduit.fullname" . }}{{- end }} + claimName: {{ template "conduit.fullname" . }} {{- else }} emptyDir: {} {{- end }} \ No newline at end of file diff --git a/charts/conduit/templates/pvc.yaml b/charts/conduit/templates/pvc.yaml index 0905826..45ed0e9 100644 --- a/charts/conduit/templates/pvc.yaml +++ b/charts/conduit/templates/pvc.yaml @@ -1,4 +1,4 @@ -{{- if and .Values.persistence.enabled ( not .Values.persistence.existingClaim) -}} +{{- if and .Values.persistence.enabled -}} kind: PersistentVolumeClaim apiVersion: v1 metadata: