From 177f5ad965eca7473a748c8b072db80fd6a99b39 Mon Sep 17 00:00:00 2001 From: Cristian Date: Fri, 10 Jan 2020 12:04:03 -0800 Subject: [PATCH] Allow to specify "access mode" to data pvc (#76) * Allow to specify "access mode" to data pvc * Updated readme * Updated values --- charts/kube-plex/README.md | 2 ++ charts/kube-plex/templates/volumes.yaml | 2 +- charts/kube-plex/values.yaml | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/kube-plex/README.md b/charts/kube-plex/README.md index 7ba3871..b84b82c 100644 --- a/charts/kube-plex/README.md +++ b/charts/kube-plex/README.md @@ -38,10 +38,12 @@ The following tables lists the configurable parameters of the Plex chart and the | `persistence.data.existingClaim`| Use an existing PVC to persist data | `nil` | | `persistence.data.subPath` | SubPath to use for existing Claim | `nil` | | `persistence.data.storageClass` | Type of persistent volume claim | `-` | +| `persistence.data.accessMode` | Persistent volume access mode | `ReadWriteMany` | | `persistence.config.size` | Size of persistent volume claim | `20Gi` | | `persistence.config.existingClaim`| Use an existing PVC to persist data | `nil` | | `persistence.config.subPath` | SubPath to use for existing Claim | `nil` | | `persistence.config.storageClass` | Type of persistent volume claim | `-` | +| `persistence.config.accessMode` | Persistent volume access mode | `ReadWriteMany` | | `resources` | CPU/Memory resource requests/limits | `{}` | | `podAnnotations` | Key-value pairs to add as pod annotations | `{}` | | `proxy.enable` | use to enable PMS proxy environmental variable | `{false}` | diff --git a/charts/kube-plex/templates/volumes.yaml b/charts/kube-plex/templates/volumes.yaml index 9695c4e..0fe7152 100644 --- a/charts/kube-plex/templates/volumes.yaml +++ b/charts/kube-plex/templates/volumes.yaml @@ -55,7 +55,7 @@ metadata: component: data spec: accessModes: - - ReadWriteMany + - {{ .Values.persistence.data.accessMode | quote }} resources: requests: storage: {{ .Values.persistence.data.size | quote }} diff --git a/charts/kube-plex/values.yaml b/charts/kube-plex/values.yaml index afb2c76..6b58f9e 100644 --- a/charts/kube-plex/values.yaml +++ b/charts/kube-plex/values.yaml @@ -90,6 +90,8 @@ persistence: # The requested size of the volume to be used when creating a # PersistentVolumeClaim. size: 40Gi + # Access mode for this volume + accessMode: ReadWriteMany config: # Optionally specify claimName to manually override the PVC to be used for # the config directory. If claimName is specified, storageClass and size @@ -103,6 +105,7 @@ persistence: # The requested size of the volume to be used when creating a # PersistentVolumeClaim. size: 20Gi + # Access mode for this volume accessMode: ReadWriteMany resources: {}