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
# 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.

View File

@ -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 }}

View File

@ -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