diff --git a/charts/nzbget/Chart.yaml b/charts/nzbget/Chart.yaml index 06077174..869d1457 100644 --- a/charts/nzbget/Chart.yaml +++ b/charts/nzbget/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: v21.0-ls14 description: NZBGet is a Usenet downloader client name: nzbget -version: 3.0.0 +version: 3.1.0 keywords: - nzbget - usenet diff --git a/charts/nzbget/README.md b/charts/nzbget/README.md index d4ed9a5e..0f4a01b7 100644 --- a/charts/nzbget/README.md +++ b/charts/nzbget/README.md @@ -72,7 +72,8 @@ The following tables lists the configurable parameters of the Sentry chart and t | `persistence.downloads.size` | Size of persistent volume claim | `10Gi` | | `persistence.downloads.existingClaim`| Use an existing PVC to persist data | `nil` | | `persistence.downloads.storageClass` | Type of persistent volume claim | `-` | -| `persistence.downloads.accessMode` | Persistence access mode | `ReadWriteOnce` | +| `persistence.downloads.accessMode` | Persistence access mode | `ReadWriteOnce` | +| `persistence.extraMounts` | Array of additional claims to mount | `[]` | | `resources` | CPU/Memory resource requests/limits | `{}` | | `nodeSelector` | Node labels for pod assignment | `{}` | | `tolerations` | Toleration labels for pod assignment | `[]` | @@ -93,4 +94,4 @@ Alternatively, a YAML file that specifies the values for the above parameters ca helm install --name my-release -f values.yaml stable/nzbget ``` -Read through the [values.yaml](https://github.com/billimek/billimek-charts/blob/master/charts/nzbget/values.yaml) file. It has several commented out suggested values. \ No newline at end of file +Read through the [values.yaml](https://github.com/billimek/billimek-charts/blob/master/charts/nzbget/values.yaml) file. It has several commented out suggested values. diff --git a/charts/nzbget/templates/deployment.yaml b/charts/nzbget/templates/deployment.yaml index d88cb3b9..9ccd6e9f 100644 --- a/charts/nzbget/templates/deployment.yaml +++ b/charts/nzbget/templates/deployment.yaml @@ -62,6 +62,10 @@ spec: {{- if .Values.persistence.downloads.subPath }} subPath: {{ .Values.persistence.downloads.subPath }} {{ end }} + {{- range .Values.persistence.extraMounts }} + - mountPath: /{{ .name }} + name: {{ .name }} + {{- end }} resources: {{ toYaml .Values.resources | indent 12 }} volumes: @@ -79,6 +83,11 @@ spec: {{- else }} emptyDir: {} {{ end }} + {{- range .Values.persistence.extraMounts }} + - name: {{ .name }} + persistentVolumeClaim: + claimName: {{ .claimName }} + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} diff --git a/charts/nzbget/values.yaml b/charts/nzbget/values.yaml index 34e752b5..72b32e43 100644 --- a/charts/nzbget/values.yaml +++ b/charts/nzbget/values.yaml @@ -96,7 +96,12 @@ persistence: # subPath: some-subpath accessMode: ReadWriteOnce size: 10Gi - + extraMounts: [] + ## Include additional claims that can be mounted inside the + ## pod. This is useful if you wish to use different paths with categories + ## Claim will me mounted as /{name} + # - name: video + # claimName: video-claim resources: {} # We usually recommend not to specify default resources and to leave this as a conscious