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 --- .../guides/infra_guides/oom_infra_base_config_setup.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'docs/sections/guides/infra_guides/oom_infra_base_config_setup.rst') diff --git a/docs/sections/guides/infra_guides/oom_infra_base_config_setup.rst b/docs/sections/guides/infra_guides/oom_infra_base_config_setup.rst index f27277ddc9..e84f578c01 100644 --- a/docs/sections/guides/infra_guides/oom_infra_base_config_setup.rst +++ b/docs/sections/guides/infra_guides/oom_infra_base_config_setup.rst @@ -15,6 +15,7 @@ .. _Istio setup guide: https://istio.io/latest/docs/setup/install/helm/ .. _Gateway-API: https://gateway-api.sigs.k8s.io/ .. _Istio-Gateway: https://istio.io/latest/docs/reference/config/networking/gateway/ +.. _DefaultStorageClass: https://kubernetes.io/docs/tasks/administer-cluster/change-default-storage-class/ .. _oom_base_setup_guide: @@ -116,6 +117,17 @@ Verify the plugins are installed:: deploy 1.0.0 install (upgrade if release exists) parent chart and all subcharts as separate but related releases undeploy 1.0.0 delete parent chart and subcharts that were deployed as separate releases +Set the default StorageClass +---------------------------- + +In some ONAP components it is important to have a default storageClass defined (e.g. cassandra), +if you don't want to explicitly set it during the deployment via helm overrides. + +Therefor you should set the default storageClass (if not done during the K8S cluster setup) via the command: + + > kubectl patch storageclass -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}' + +see `DefaultStorageClass`_ Install the Strimzi Kafka Operator ---------------------------------- -- cgit 1.2.3-korg