[nzbget] Allow mounting additional claims (#137)

This is useful if some data exists in different paths and you wish to make use
of categories + paths. So you can have a volume for Movies and have a movies
category that points to this path.

Useful for when they exist on NFS, this allows you to easily attach NFS mounts
to the pod.

Signed-off-by: Yasser Saleemi <yassersaleemi@gmail.com>
This commit is contained in:
Yasser Saleemi 2020-01-18 22:11:04 +00:00 committed by Jeff Billimek
parent 07a132c04a
commit 67cb8ec883
4 changed files with 19 additions and 4 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v1
appVersion: v21.0-ls14 appVersion: v21.0-ls14
description: NZBGet is a Usenet downloader client description: NZBGet is a Usenet downloader client
name: nzbget name: nzbget
version: 3.0.0 version: 3.1.0
keywords: keywords:
- nzbget - nzbget
- usenet - usenet

View File

@ -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.size` | Size of persistent volume claim | `10Gi` |
| `persistence.downloads.existingClaim`| Use an existing PVC to persist data | `nil` | | `persistence.downloads.existingClaim`| Use an existing PVC to persist data | `nil` |
| `persistence.downloads.storageClass` | Type of persistent volume claim | `-` | | `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 | `{}` | | `resources` | CPU/Memory resource requests/limits | `{}` |
| `nodeSelector` | Node labels for pod assignment | `{}` | | `nodeSelector` | Node labels for pod assignment | `{}` |
| `tolerations` | Toleration 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 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. 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.

View File

@ -62,6 +62,10 @@ spec:
{{- if .Values.persistence.downloads.subPath }} {{- if .Values.persistence.downloads.subPath }}
subPath: {{ .Values.persistence.downloads.subPath }} subPath: {{ .Values.persistence.downloads.subPath }}
{{ end }} {{ end }}
{{- range .Values.persistence.extraMounts }}
- mountPath: /{{ .name }}
name: {{ .name }}
{{- end }}
resources: resources:
{{ toYaml .Values.resources | indent 12 }} {{ toYaml .Values.resources | indent 12 }}
volumes: volumes:
@ -79,6 +83,11 @@ spec:
{{- else }} {{- else }}
emptyDir: {} emptyDir: {}
{{ end }} {{ end }}
{{- range .Values.persistence.extraMounts }}
- name: {{ .name }}
persistentVolumeClaim:
claimName: {{ .claimName }}
{{- end }}
{{- with .Values.nodeSelector }} {{- with .Values.nodeSelector }}
nodeSelector: nodeSelector:
{{ toYaml . | indent 8 }} {{ toYaml . | indent 8 }}

View File

@ -96,7 +96,12 @@ persistence:
# subPath: some-subpath # subPath: some-subpath
accessMode: ReadWriteOnce accessMode: ReadWriteOnce
size: 10Gi 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: {} resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious # We usually recommend not to specify default resources and to leave this as a conscious