Added existing claim

This commit is contained in:
Jon Ervine 2021-02-14 09:32:56 +08:00
parent 6ee513c363
commit 6b7dd00624
3 changed files with 14 additions and 6 deletions

View File

@ -14,7 +14,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes # 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. # 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 # This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. # incremented each time you make changes to the application.

View File

@ -48,9 +48,13 @@ spec:
mountPath: /movies mountPath: /movies
subPath: movies subPath: movies
volumes: volumes:
{{- if and .Values.config.persistence.enabled .Values.config.persistence.existingClaim }}
- name: radarr-config - name: radarr-config
persistentVolumeClaim: persistentVolumeClaim:
claimName: {{ .Values.config.configPvc }} {{- with .Values.config.persistence.existingClaim }}
claimName: {{ tpl . $ }}
{{- end }}
{{- end }}
- name: radarr-media - name: radarr-media
persistentVolumeClaim: persistentVolumeClaim:
claimName: {{ .Values.mediaPvc }} claimName: {{ .Values.mediaPvc }}

View File

@ -26,9 +26,9 @@ securityContext:
# capabilities: # capabilities:
# drop: # drop:
# - ALL # - ALL
readOnlyRootFilesystem: true readOnlyRootFilesystem: false
runAsNonRoot: true runAsNonRoot: true
runAsUser: 1003 runAsUser: 1027
service: service:
type: ClusterIP type: ClusterIP
@ -67,6 +67,10 @@ tolerations: []
affinity: {} affinity: {}
config: 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