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.3
version: 0.1.9
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
+9 -11
View File
@@ -62,10 +62,17 @@ spec:
claimName: {{ .Values.mediaPvc }}
- name: local-download
emptyDir: {}
{{- with .Values.nodeSelector }}
{{- if and .Values.config.persistence.enabled .Values.config.persistence.existingClaim }}
- name: nzbget-config
persistentVolumeClaim:
{{- with .Values.config.persistence.existingClaim }}
claimName: {{ tpl . $ }}
{{- end }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
@@ -74,12 +81,3 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
volumeClaimTemplates:
- metadata:
name: nzbget-config
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: {{ .Values.config.storageClassName | quote }}
resources:
requests:
storage: {{ .Values.config.storageSize }}
+7 -4
View File
@@ -6,7 +6,7 @@ replicaCount: 1
image:
repository: harbor.ervine.dev/public/x86_64/alpine/nzbget
tag: v21.0-3.13.0
tag: v21.0-3.13.1
pullPolicy: Always
imagePullSecrets: []
@@ -29,7 +29,7 @@ securityContext:
# - ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1003
runAsUser: 1027
service:
type: ClusterIP
@@ -68,7 +68,10 @@ tolerations: []
affinity: {}
config:
storageClassName: nfs-client-hermes
storageSize: 5Gi
persistence:
enabled: true
existingClaim: media-nzbget-hermes-config
storageClassName: nfs-client-hermes
storageSize: 5Gi
mediaPvc: nzbget-hermes-media-pvc