summaryrefslogtreecommitdiffstats
path: root/kubernetes/clamp/charts/clamp-dash-es/templates/pvc.yaml
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2019-12-06 18:21:33 +0100
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>2019-12-06 18:21:33 +0100
commit3a9a9788bad00f13fc17056a456ef0cbe9a5d7a4 (patch)
treecf8a46ef4203a31db7ff0ee4b58470f3c7329492 /kubernetes/clamp/charts/clamp-dash-es/templates/pvc.yaml
parent72c71c0b832a169c03bcdbaa5997956e30f62c7c (diff)
[CLAMP] Use global storage templates for PVC
OOM has now templates in order to create the needed PVC, using: * a PV with a specific class when using a common nfs mount path between nodes (sames as today use) --> is the default behavior today * or a storage class if we want to use dynamic PV. On this case, we use (in order of priority): - persistence.storageClassOverride if set on the chart - global.persistence.storageClass if set globally - persistence.storageClass if set on the chart Change-Id: I2cc90fe7a22a04d47d406b854c3a75502e539a25 Issue-ID: OOM-1227 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Diffstat (limited to 'kubernetes/clamp/charts/clamp-dash-es/templates/pvc.yaml')
-rw-r--r--kubernetes/clamp/charts/clamp-dash-es/templates/pvc.yaml4
1 files changed, 1 insertions, 3 deletions
diff --git a/kubernetes/clamp/charts/clamp-dash-es/templates/pvc.yaml b/kubernetes/clamp/charts/clamp-dash-es/templates/pvc.yaml
index abab145a8f..d2eddc227d 100644
--- a/kubernetes/clamp/charts/clamp-dash-es/templates/pvc.yaml
+++ b/kubernetes/clamp/charts/clamp-dash-es/templates/pvc.yaml
@@ -29,11 +29,9 @@ metadata:
{{ toYaml .Values.persistence.annotations | indent 4 }}
{{- end }}
spec:
- selector:
- matchLabels:
- name: {{ include "common.fullname" . }}
accessModes:
- {{ .Values.persistence.accessMode }}
+ storageClassName: {{ include "common.storageClass" . }}
resources:
requests:
storage: {{ .Values.persistence.size }}