Added PVC option
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user