Added PVC option

This commit is contained in:
Jon Ervine
2021-02-13 21:38:04 +08:00
parent 06fc5e6388
commit 402b64152f
6 changed files with 34 additions and 21 deletions
+1 -1
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.29
version: 0.1.30
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
+11 -2
View File
@@ -53,6 +53,13 @@ spec:
volumes:
- name: hydra-tmp
emptyDir: {}
{{- if and .Values.config.persistence.enabled .Values.config.persistence.existingClaim }}
- name: hydra-config
persistentVolumeClaim:
{{- with .Values.config.persistence.existingClaim }}
claimName: {{ tpl . $ }}
{{- end }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
@@ -65,12 +72,14 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if and .Values.config.persistence.enabled (not .Values.config.persistence.existingClaim) }}
volumeClaimTemplates:
- metadata:
name: hydra-config
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: {{ .Values.config.storageClassName | quote }}
storageClassName: {{ .Values.config.persistence.storageClassName | quote }}
resources:
requests:
storage: {{ .Values.config.storageSize }}
storage: {{ .Values.config.persistence.storageSize }}
{{- end -}}
+5 -2
View File
@@ -67,5 +67,8 @@ tolerations: []
affinity: {}
config:
storageClassName: nfs-client-hermes
storageSize: 10Gi
persistence:
enabled: true
existingClaim: media-nzbhydra-config
storageClassName: nfs-client-hermes
storageSize: 10Gi