adding support for subPath

Signed-off-by: Jeff Billimek <jeff@billimek.com>
This commit is contained in:
Jeff Billimek
2018-11-05 07:46:54 -05:00
parent 8c972b0c15
commit d8dc9f578c
3 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
apiVersion: v1 apiVersion: v1
description: A Helm chart for Kubernetes description: A Helm chart for Kubernetes
name: kube-plex name: kube-plex
version: 0.1.0 version: 0.1.1
@@ -95,10 +95,19 @@ spec:
volumeMounts: volumeMounts:
- name: data - name: data
mountPath: /data mountPath: /data
{{- if .Values.persistence.data.subPath }}
subPath: {{ .Values.persistence.data.subPath }}
{{ end }}
- name: config - name: config
mountPath: /config mountPath: /config
{{- if .Values.persistence.config.subPath }}
subPath: {{ .Values.persistence.config.subPath }}
{{ end }}
- name: transcode - name: transcode
mountPath: /transcode mountPath: /transcode
{{- if .Values.persistence.transcode.subPath }}
subPath: {{ .Values.persistence.transcode.subPath }}
{{ end }}
- name: shared - name: shared
mountPath: /shared mountPath: /shared
resources: resources:
+3
View File
@@ -55,6 +55,7 @@ persistence:
# If not specified and claimName is not specified, the default storage # If not specified and claimName is not specified, the default storage
# class will be used. # class will be used.
storageClass: "" storageClass: ""
# subPath: some-subpath
# The requested size of the volume to be used when creating a # The requested size of the volume to be used when creating a
# PersistentVolumeClaim. # PersistentVolumeClaim.
size: 20Gi size: 20Gi
@@ -67,6 +68,7 @@ persistence:
# If not specified and claimName is not specified, the default storage # If not specified and claimName is not specified, the default storage
# class will be used. # class will be used.
storageClass: "" storageClass: ""
# subPath: some-subpath
# The requested size of the volume to be used when creating a # The requested size of the volume to be used when creating a
# PersistentVolumeClaim. # PersistentVolumeClaim.
size: 40Gi size: 40Gi
@@ -78,6 +80,7 @@ persistence:
# Optionally specify a storage class to be used for the config directory. # Optionally specify a storage class to be used for the config directory.
# If not specified and claimName is not specified, the default storage # If not specified and claimName is not specified, the default storage
# class will be used. # class will be used.
# subPath: some-subpath
storageClass: "" storageClass: ""
# The requested size of the volume to be used when creating a # The requested size of the volume to be used when creating a
# PersistentVolumeClaim. # PersistentVolumeClaim.