diff --git a/charts/kube-plex/templates/deployment.yaml b/charts/kube-plex/templates/deployment.yaml index 8ac8b96..b2a897c 100644 --- a/charts/kube-plex/templates/deployment.yaml +++ b/charts/kube-plex/templates/deployment.yaml @@ -95,10 +95,19 @@ spec: volumeMounts: - name: data mountPath: /data + {{- if .Values.persistence.data.subPath }} + subPath: {{ .Values.persistence.data.subPath }} + {{ end }} - name: config mountPath: /config + {{- if .Values.persistence.config.subPath }} + subPath: {{ .Values.persistence.config.subPath }} + {{ end }} - name: transcode mountPath: /transcode + {{- if .Values.persistence.transcode.subPath }} + subPath: {{ .Values.persistence.transcode.subPath }} + {{ end }} - name: shared mountPath: /shared resources: diff --git a/charts/kube-plex/values.yaml b/charts/kube-plex/values.yaml index c6e8a93..eb44b62 100644 --- a/charts/kube-plex/values.yaml +++ b/charts/kube-plex/values.yaml @@ -55,6 +55,7 @@ persistence: # If not specified and claimName is not specified, the default storage # class will be used. storageClass: "" + # subPath: some-subpath # The requested size of the volume to be used when creating a # PersistentVolumeClaim. size: 20Gi @@ -67,6 +68,7 @@ persistence: # If not specified and claimName is not specified, the default storage # class will be used. storageClass: "" + # subPath: some-subpath # The requested size of the volume to be used when creating a # PersistentVolumeClaim. size: 40Gi @@ -78,6 +80,7 @@ persistence: # Optionally specify a storage class to be used for the config directory. # If not specified and claimName is not specified, the default storage # class will be used. + # subPath: some-subpath storageClass: "" # The requested size of the volume to be used when creating a # PersistentVolumeClaim.