diff --git a/charts/plex/Chart.yaml b/charts/plex/Chart.yaml index a4cdddb0..f7847ee3 100644 --- a/charts/plex/Chart.yaml +++ b/charts/plex/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: 1.19.1.2645-ccb6eb67e description: Plex Media Server name: plex -version: 1.5.2 +version: 1.6.0 keywords: - plex home: https://plex.tv/ diff --git a/charts/plex/templates/deployment.yaml b/charts/plex/templates/deployment.yaml index 233120f0..633b8f0a 100644 --- a/charts/plex/templates/deployment.yaml +++ b/charts/plex/templates/deployment.yaml @@ -209,6 +209,10 @@ spec: - mountPath: "/data-{{ .name }}" name: "extradata-{{ .name }}" {{- end }} + {{- range .Values.persistence.extraMounts }} + - mountPath: "/{{ .name }}" + name: "{{ .name }}" + {{- end }} - name: shared mountPath: /shared {{- if .Values.plexPreferences.enabled }} @@ -266,6 +270,11 @@ spec: {{- else }} claimName: "extradata-{{ .name }}" {{- end }} +{{- end }} +{{- range .Values.persistence.extraMounts }} + - name: {{ .name }} + persistentVolumeClaim: + claimName: {{ .claimName }} {{- end }} - name: shared emptyDir: {} diff --git a/charts/plex/values.yaml b/charts/plex/values.yaml index 77bd569d..8a7b7cad 100644 --- a/charts/plex/values.yaml +++ b/charts/plex/values.yaml @@ -209,6 +209,13 @@ persistence: # - claimName: "special-tv" # name: 'foo' + 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 + config: # Optionally specify claimName to manually override the PVC to be used for # the config directory. If claimName is specified, storageClass and size