diff --git a/k8s/apps/scrypted/templates/deployment.yaml b/k8s/apps/scrypted/templates/deployment.yaml index e87329c..a70d4df 100644 --- a/k8s/apps/scrypted/templates/deployment.yaml +++ b/k8s/apps/scrypted/templates/deployment.yaml @@ -21,6 +21,11 @@ spec: persistentVolumeClaim: claimName: {{ .Values.persistence.media_path.claimName }} {{- end }} + {{- if .Values.persistence.conf_path.enabled }} + - name: conf-path + persistentVolumeClaim: + claimName: {{ .Values.persistence.conf_path.claimName }} + {{- end }} containers: - name: main imagePullPolicy: "IfNotPresent" @@ -65,3 +70,7 @@ spec: - name: media-path mountPath: /media/nvr {{ end }} + {{- if .Values.persistence.conf_path.enabled }} + - name: conf-path + mountPath: /server/volume + {{ end }} diff --git a/k8s/argoapps/values.yaml b/k8s/argoapps/values.yaml index a2f7ec1..e4f4755 100644 --- a/k8s/argoapps/values.yaml +++ b/k8s/argoapps/values.yaml @@ -89,6 +89,10 @@ apps: media_path: enabled: true claimName: {{ .Values.storage.scrypted.name }} + persistence: + conf_path: + enabled: truescryptedConf + claimName: {{ .Values.storage.scryptedConf.name }} z2m: values: |- persistence: @@ -277,6 +281,16 @@ storage: storage: 100Gi requests: storage: 10Gi + scryptedConf: + name: scrypted-conf + namespace: apps-scrypted + accessModes: + - ReadWriteMany + resources: + limits: + storage: 100Gi + requests: + storage: 10Gi z2mData: name: z2m-data namespace: apps-z2m