From 7e14d24ec4f8906d74584b68a04cd95934a98a94 Mon Sep 17 00:00:00 2001 From: Andreas Geissler Date: Mon, 17 Jul 2023 17:25:07 +0200 Subject: [DOC][CASSANDRA] Default StorageClass for Cassandra deployment As Cassandra (via k8ssandra-operator) requires either a default StorageClass, the instructions to set the default in the OOM docs and removed the hardcoded "storageClass" setting in cassandra installation. Issue-ID: OOM-3226 Change-Id: I815614c31ae6b7fcb811d86519d0df1cc4a8898d Signed-off-by: Andreas Geissler --- kubernetes/common/cassandra/values.yaml | 2 +- kubernetes/common/common/templates/_cassOp.tpl | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'kubernetes') diff --git a/kubernetes/common/cassandra/values.yaml b/kubernetes/common/cassandra/values.yaml index 5bff17eaef..2f24750072 100644 --- a/kubernetes/common/cassandra/values.yaml +++ b/kubernetes/common/cassandra/values.yaml @@ -26,7 +26,7 @@ k8ssandraOperator: enabled: true cassandraVersion: 4.0.1 persistence: - storageClassName: default + #storageClassName: default size: 10Gi config: clusterName: cassandra diff --git a/kubernetes/common/common/templates/_cassOp.tpl b/kubernetes/common/common/templates/_cassOp.tpl index 6cf9c3ce7e..d6133422a3 100644 --- a/kubernetes/common/common/templates/_cassOp.tpl +++ b/kubernetes/common/common/templates/_cassOp.tpl @@ -35,7 +35,9 @@ spec: serverVersion: {{ .Values.k8ssandraOperator.cassandraVersion }} storageConfig: cassandraDataVolumeClaimSpec: + {{ if .Values.k8ssandraOperator.persistence.storageClassName -}} storageClassName: {{ .Values.k8ssandraOperator.persistence.storageClassName }} + {{- end }} accessModes: - ReadWriteOnce resources: -- cgit 1.2.3-korg