diff --git a/radarr/Chart.yaml b/radarr/Chart.yaml index 3788a5f..2a3f689 100644 --- a/radarr/Chart.yaml +++ b/radarr/Chart.yaml @@ -14,7 +14,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. -version: 0.1.6 +version: 0.1.7 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. diff --git a/radarr/templates/statefulset.yaml b/radarr/templates/statefulset.yaml index d900097..e66af53 100644 --- a/radarr/templates/statefulset.yaml +++ b/radarr/templates/statefulset.yaml @@ -48,9 +48,13 @@ spec: mountPath: /movies subPath: movies volumes: + {{- if and .Values.config.persistence.enabled .Values.config.persistence.existingClaim }} - name: radarr-config persistentVolumeClaim: - claimName: {{ .Values.config.configPvc }} + {{- with .Values.config.persistence.existingClaim }} + claimName: {{ tpl . $ }} + {{- end }} + {{- end }} - name: radarr-media persistentVolumeClaim: claimName: {{ .Values.mediaPvc }} diff --git a/radarr/values.yaml b/radarr/values.yaml index 024f088..d6c83c3 100644 --- a/radarr/values.yaml +++ b/radarr/values.yaml @@ -26,9 +26,9 @@ securityContext: # capabilities: # drop: # - ALL - readOnlyRootFilesystem: true + readOnlyRootFilesystem: false runAsNonRoot: true - runAsUser: 1003 + runAsUser: 1027 service: type: ClusterIP @@ -67,6 +67,10 @@ tolerations: [] affinity: {} config: - configPvc: radarr-hermes-config-pvc + persistence: + enabled: true + storageClassName: nfs-client-icarus + existingClaim: radarr-hermes-config + storageSize: 1Gi -mediaPvc: radarr-media-pvc +mediaPvc: radarr-hermes-media