Debug permission issues with mounted filesystem (PV)

This commit is contained in:
Tommy 2023-10-29 13:55:41 +01:00
parent 0997ca2691
commit 736ea03631
3 changed files with 6 additions and 5 deletions

View file

@ -2,5 +2,5 @@ apiVersion: v2
name: conduit name: conduit
description: Conduit is a simple, fast and reliable chat server powered by Matrix. description: Conduit is a simple, fast and reliable chat server powered by Matrix.
type: application type: application
version: 0.2.4 version: 0.2.5
appVersion: "0.6.0" appVersion: "0.6.0"

View file

@ -62,7 +62,7 @@ spec:
- name: "CONDUIT_SERVER_NAME" - name: "CONDUIT_SERVER_NAME"
value: {{ .Values.conduit.server_name | quote }} value: {{ .Values.conduit.server_name | quote }}
- name: "CONDUIT_DATABASE_PATH" - name: "CONDUIT_DATABASE_PATH"
value: "/var/local/matrix-conduit" value: "/var/lib/conduit"
- name: "CONDUIT_DATABASE_BACKEND" - name: "CONDUIT_DATABASE_BACKEND"
value: "rocksdb" value: "rocksdb"
- name: "CONDUIT_ALLOW_CHECK_FOR_UPDATE" - name: "CONDUIT_ALLOW_CHECK_FOR_UPDATE"
@ -97,7 +97,8 @@ spec:
value: "" value: ""
volumeMounts: volumeMounts:
- name: "data" - name: "data"
mountPath: "/var/local/matrix-conduit" mountPath: "/var/lib/conduit"
readOnly: false
{{- with .Values.nodeSelector }} {{- with .Values.nodeSelector }}
nodeSelector: nodeSelector:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
@ -114,7 +115,7 @@ spec:
- name: "data" - name: "data"
{{- if .Values.persistence.enabled }} {{- if .Values.persistence.enabled }}
persistentVolumeClaim: persistentVolumeClaim:
claimName: {{ if .Values.persistence.existingClaim }}{{ .Values.persistence.existingClaim }}{{- else }}{{ template "conduit.fullname" . }}{{- end }} claimName: {{ template "conduit.fullname" . }}
{{- else }} {{- else }}
emptyDir: {} emptyDir: {}
{{- end }} {{- end }}

View file

@ -1,4 +1,4 @@
{{- if and .Values.persistence.enabled ( not .Values.persistence.existingClaim) -}} {{- if and .Values.persistence.enabled -}}
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
apiVersion: v1 apiVersion: v1
metadata: metadata: