Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,18 @@ general:
path: /mount/path/on/nfs/server/
```

*Optional:* To use a specific NFS volume for downloads folder, you should add:

``` yaml
general:
storage:
customVolume: true
downloadsVolume:
nfs:
server: {SERVER-IP}
path: /mount/path/on/nfs/server/
```

With this value saved in the top level directory of this repo, running the below will add the resources to your cluster,
under the helm release name `k8s-mediaserver`

Expand Down Expand Up @@ -126,6 +138,7 @@ letting some customization to fit the resource inside your cluster.
| general.puid | The UID for the process | 1000 |
| general.nodeSelector | Node Selector for all the pods | {} |
| general.storage.customVolume | Flag if you want to supply your own volume and not use a PVC | false |
| general.storage.downloadsVolume | Supply custom volume to be mounted for downloads folder | {} |
| general.storage.pvcName | Name of the persistenVolumeClaim configured in deployments | mediaserver-pvc |
| general.storage.accessMode | Access mode for mediaserver PVC in case of single nodes | ReadWriteMany |
| general.storage.pvcStorageClass | Specifies a storageClass for the PVC | "" |
Expand Down
2 changes: 1 addition & 1 deletion helm-charts/k8s-mediaserver/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ appVersion: 1.16.0
description: A Helm chart for Kubernetes mediaserver
name: k8s-mediaserver
type: application
version: 0.7.0
version: 0.7.1
10 changes: 10 additions & 0 deletions helm-charts/k8s-mediaserver/templates/radarr-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,15 @@ spec:
mountPath: "/config"
subPath: "{{ .Values.general.storage.subPaths.config }}/radarr"
{{- end }}
{{- if (and ( .Values.general.storage.customVolume ) ( .Values.general.storage.downloadsVolume ) ) }}
- name: download-volume
mountPath: "/downloads"
subPath: "{{ .Values.general.storage.subPaths.downloads }}"
{{- else }}
- name: mediaserver-volume
mountPath: "/downloads"
subPath: "{{ .Values.general.storage.subPaths.downloads }}"
{{- end }}
- name: mediaserver-volume
mountPath: "/movies"
subPath: "{{ .Values.general.storage.subPaths.movies }}"
Expand All @@ -111,6 +117,10 @@ spec:
- name: mediaserver-volume
{{- toYaml .Values.general.storage.volumes | nindent 10 }}
{{- end }}
{{- if (and ( .Values.general.storage.customVolume ) ( .Values.general.storage.downloadsVolume ) ) }}
- name: download-volume
{{- toYaml .Values.general.storage.downloadsVolume | nindent 10 }}
{{- end }}
{{- if .Values.radarr.volume }}
- name: {{ .Values.radarr.volume.name }}
persistentVolumeClaim:
Expand Down
10 changes: 10 additions & 0 deletions helm-charts/k8s-mediaserver/templates/sonarr-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,15 @@ spec:
mountPath: "/config"
subPath: "{{ .Values.general.storage.subPaths.config }}/sonarr"
{{- end }}
{{- if (and ( .Values.general.storage.customVolume ) ( .Values.general.storage.downloadsVolume ) ) }}
- name: download-volume
mountPath: "/downloads"
subPath: "{{ .Values.general.storage.subPaths.downloads }}"
{{- else }}
- name: mediaserver-volume
mountPath: "/downloads"
subPath: "{{ .Values.general.storage.subPaths.downloads }}"
{{- end }}
- name: mediaserver-volume
mountPath: "/tv"
subPath: "{{ .Values.general.storage.subPaths.tv }}"
Expand All @@ -110,6 +116,10 @@ spec:
- name: mediaserver-volume
{{- toYaml .Values.general.storage.volumes | nindent 10 }}
{{- end }}
{{- if (and ( .Values.general.storage.customVolume ) ( .Values.general.storage.downloadsVolume ) ) }}
- name: download-volume
{{- toYaml .Values.general.storage.downloadsVolume | nindent 10 }}
{{- end }}
{{- if .Values.sonarr.volume }}
- name: {{ .Values.sonarr.volume.name }}
persistentVolumeClaim:
Expand Down
10 changes: 10 additions & 0 deletions helm-charts/k8s-mediaserver/templates/transmission-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,15 @@ spec:
mountPath: "/config"
subPath: "{{ .Values.general.storage.subPaths.config }}/transmission"
{{ end }}
{{ if (and ( .Values.general.storage.customVolume ) ( .Values.general.storage.downloadsVolume ) ) }}
- name: download-volume
mountPath: "/downloads"
subPath: "{{ .Values.general.storage.subPaths.downloads }}"
{{ else }}
- name: mediaserver-volume
mountPath: "/downloads"
subPath: "{{ .Values.general.storage.subPaths.downloads }}"
{{ end }}
{{- with .Values.transmission.resources }}
resources:
{{- toYaml . | nindent 12 }}
Expand All @@ -178,6 +184,10 @@ spec:
- name: mediaserver-volume
{{- toYaml .Values.general.storage.volumes | nindent 10 }}
{{ end }}
{{ if (and ( .Values.general.storage.customVolume ) ( .Values.general.storage.downloadsVolume ) ) }}
- name: download-volume
{{- toYaml .Values.general.storage.downloadsVolume | nindent 10 }}
{{ end }}
{{ if .Values.transmission.volume }}
- name: {{ .Values.transmission.volume.name }}
persistentVolumeClaim:
Expand Down
4 changes: 4 additions & 0 deletions helm-charts/k8s-mediaserver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ general:
volumes: {}
# hostPath:
# path: /mnt/share
downloadsVolume: {}
# nfs:
# server: {SERVER-IP}
# path: /mount/path/on/nfs/server/
ingress:
ingressClassName: ""

Expand Down
4 changes: 4 additions & 0 deletions k8s-mediaserver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ spec:
volumes: {}
# hostPath:
# path: /mnt/share
downloadsVolume: {}
# nfs:
# server: {SERVER-IP}
# path: /mount/path/on/nfs/server/
ingress:
ingressClassName: ""

Expand Down