Add redis.storageClassName to permit an override of the storage class (#50)

This commit is contained in:
Nathan Fisher
2020-12-14 18:14:31 -05:00
committed by GitHub
parent d60dc128c4
commit 80616f0090
3 changed files with 5 additions and 1 deletions

View File

@@ -93,3 +93,4 @@ $ helm install robot-shop --set openshift=true helm
| openshift | false | boolean | If OpenShift additional configuration is applied. |
| payment.gateway | null | string | External URL end-point to simulate partial/3rd party traces. |
| psp.enabled | false | boolean | Enable Pod Security Policy for clusters with a PSP Admission controller |
| redis.storageClassName | standard | string | Storage class to use with Redis's StatefulSet. The default for EKS is gp2. |

View File

@@ -41,7 +41,7 @@ spec:
spec:
accessModes: [ "ReadWriteOnce" ]
{{ if not .Values.openshift }}
storageClassName: standard
storageClassName: {{ .Values.redis.storageClassName }}
volumeMode: Filesystem
{{ end }}
resources:

View File

@@ -28,3 +28,6 @@ nodeport: false
# "special" Openshift. Set to true when deploying to any openshift flavour
openshift: false
# Storage class to use with redis statefulset.
redis:
storageClassName: standard