Added PVC option
This commit is contained in:
parent
06fc5e6388
commit
402b64152f
@ -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.3
|
version: 0.1.9
|
||||||
|
|
||||||
# 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.
|
||||||
|
|||||||
@ -62,6 +62,13 @@ spec:
|
|||||||
claimName: {{ .Values.mediaPvc }}
|
claimName: {{ .Values.mediaPvc }}
|
||||||
- name: local-download
|
- name: local-download
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
{{- 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 }}
|
{{- with .Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
@ -74,12 +81,3 @@ spec:
|
|||||||
tolerations:
|
tolerations:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumeClaimTemplates:
|
|
||||||
- metadata:
|
|
||||||
name: nzbget-config
|
|
||||||
spec:
|
|
||||||
accessModes: [ "ReadWriteOnce" ]
|
|
||||||
storageClassName: {{ .Values.config.storageClassName | quote }}
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: {{ .Values.config.storageSize }}
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@ replicaCount: 1
|
|||||||
|
|
||||||
image:
|
image:
|
||||||
repository: harbor.ervine.dev/public/x86_64/alpine/nzbget
|
repository: harbor.ervine.dev/public/x86_64/alpine/nzbget
|
||||||
tag: v21.0-3.13.0
|
tag: v21.0-3.13.1
|
||||||
pullPolicy: Always
|
pullPolicy: Always
|
||||||
|
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
@ -29,7 +29,7 @@ securityContext:
|
|||||||
# - ALL
|
# - ALL
|
||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
runAsUser: 1003
|
runAsUser: 1027
|
||||||
|
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
@ -68,6 +68,9 @@ tolerations: []
|
|||||||
affinity: {}
|
affinity: {}
|
||||||
|
|
||||||
config:
|
config:
|
||||||
|
persistence:
|
||||||
|
enabled: true
|
||||||
|
existingClaim: media-nzbget-hermes-config
|
||||||
storageClassName: nfs-client-hermes
|
storageClassName: nfs-client-hermes
|
||||||
storageSize: 5Gi
|
storageSize: 5Gi
|
||||||
|
|
||||||
|
|||||||
@ -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.29
|
version: 0.1.30
|
||||||
|
|
||||||
# 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.
|
||||||
|
|||||||
@ -53,6 +53,13 @@ spec:
|
|||||||
volumes:
|
volumes:
|
||||||
- name: hydra-tmp
|
- name: hydra-tmp
|
||||||
emptyDir: {}
|
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 }}
|
{{- with .Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
@ -65,12 +72,14 @@ spec:
|
|||||||
tolerations:
|
tolerations:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if and .Values.config.persistence.enabled (not .Values.config.persistence.existingClaim) }}
|
||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
- metadata:
|
- metadata:
|
||||||
name: hydra-config
|
name: hydra-config
|
||||||
spec:
|
spec:
|
||||||
accessModes: [ "ReadWriteOnce" ]
|
accessModes: [ "ReadWriteOnce" ]
|
||||||
storageClassName: {{ .Values.config.storageClassName | quote }}
|
storageClassName: {{ .Values.config.persistence.storageClassName | quote }}
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: {{ .Values.config.storageSize }}
|
storage: {{ .Values.config.persistence.storageSize }}
|
||||||
|
{{- end -}}
|
||||||
|
|||||||
@ -67,5 +67,8 @@ tolerations: []
|
|||||||
affinity: {}
|
affinity: {}
|
||||||
|
|
||||||
config:
|
config:
|
||||||
|
persistence:
|
||||||
|
enabled: true
|
||||||
|
existingClaim: media-nzbhydra-config
|
||||||
storageClassName: nfs-client-hermes
|
storageClassName: nfs-client-hermes
|
||||||
storageSize: 10Gi
|
storageSize: 10Gi
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user