From 6b7dd00624d9efd4052c74d802153ac6214f3fae Mon Sep 17 00:00:00 2001 From: Jon Ervine Date: Sun, 14 Feb 2021 09:32:56 +0800 Subject: [PATCH] Added existing claim --- radarr/Chart.yaml | 2 +- radarr/templates/statefulset.yaml | 6 +++++- radarr/values.yaml | 12 ++++++++---- 3 files changed, 14 insertions(+), 6 deletions(-) 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