summaryrefslogtreecommitdiffstats
path: root/kubernetes/common
diff options
context:
space:
mode:
authorAndreas Geissler <andreas-geissler@telekom.de>2023-07-17 17:25:07 +0200
committerAndreas Geissler <andreas-geissler@telekom.de>2023-07-19 08:58:00 +0200
commit7e14d24ec4f8906d74584b68a04cd95934a98a94 (patch)
treeb5bdce5fa8247e5c7c1d9344121183d42b194f29 /kubernetes/common
parent559e0928cd7c50fee2f36c3cc3b043eb7162871c (diff)
[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 <andreas-geissler@telekom.de>
Diffstat (limited to 'kubernetes/common')
-rw-r--r--kubernetes/common/cassandra/values.yaml2
-rw-r--r--kubernetes/common/common/templates/_cassOp.tpl2
2 files changed, 3 insertions, 1 deletions
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: