diff --git a/k8s/apps/motioneye/templates/deployment.yaml b/k8s/apps/motioneye/templates/deployment.yaml index e7fcf75..354d5dd 100644 --- a/k8s/apps/motioneye/templates/deployment.yaml +++ b/k8s/apps/motioneye/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 image: "{{ .Values.image }}:{{ .Values.tag | default .Chart.AppVersion }}" @@ -39,3 +44,7 @@ spec: - name: media-path mountPath: {{ .Values.conf.media_path }} {{ end }} + {{- if .Values.persistence.conf_path.enabled }} + - name: conf-path + mountPath: {{ .Values.conf.conf_path }} + {{ end }} diff --git a/k8s/apps/motioneye/values.yaml b/k8s/apps/motioneye/values.yaml index 79ce6af..a582c91 100644 --- a/k8s/apps/motioneye/values.yaml +++ b/k8s/apps/motioneye/values.yaml @@ -6,6 +6,9 @@ persistence: media_path: enabled: false claimName: "" + conf_path: + enabled: false + claimName: "" resources: requests: @@ -16,7 +19,7 @@ resources: cpu: "2" conf: server_name: motionEye - conf_path: /etc/motioneye + conf_path: /etc/motioneye/extra/conf run_path: /var/run log_path: /var/log media_path: /var/lib/motioneye diff --git a/k8s/argoapps/values.yaml b/k8s/argoapps/values.yaml index b3092b1..7b23fdd 100644 --- a/k8s/argoapps/values.yaml +++ b/k8s/argoapps/values.yaml @@ -181,6 +181,9 @@ apps: media_path: enabled: true claimName: {{ .Values.storage.motioneyeMedia.name }} + conf_path: + enabled: true + claimName: {{ .Values.storage.motioneyeConf.name }} infrastructureCharts: cert-manager: @@ -291,3 +294,13 @@ storage: storage: 100Gi requests: storage: 10Gi + motioneyeConf: + name: motioneye-conf + namespace: apps-motioneye + accessModes: + - ReadWriteMany + resources: + limits: + storage: 1Gi + requests: + storage: 100Mi