From 6694d7f08221e86baa3ba5a035da7f5707f63dfa Mon Sep 17 00:00:00 2001 From: Bimo Fransiscus Asisi Date: Thu, 7 Aug 2025 16:54:16 +0800 Subject: [PATCH] add openebs as default local storageclass issue-id: INT-192 Change-Id: Ie5cb8fd0a640905a1f0eac24e0138c3fcf46188b Signed-off-by: Bimo Fransiscus Asisi --- tools/setup_k8s/scripts/openebs.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 tools/setup_k8s/scripts/openebs.sh diff --git a/tools/setup_k8s/scripts/openebs.sh b/tools/setup_k8s/scripts/openebs.sh new file mode 100644 index 00000000..d3cdf92a --- /dev/null +++ b/tools/setup_k8s/scripts/openebs.sh @@ -0,0 +1,29 @@ +################################################################################ +# Copyright (c) 2025 Broadband Multimedia Wireless Lab, NTUST # # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +################################################################################ + +helm repo add openebs https://openebs.github.io/openebs +helm repo update +helm upgrade --install openebs --namespace openebs openebs/openebs + --version 4.3.0 + --create-namespace + --set engines.replicated.mayastor.enabled=false + --set engines.local.lvm.enabled=false + --set engines.local.zfs.enabled=false + --set loki.enabled=false + --set alloy.enabled=false + --wait + +kubectl patch storageclass openebs-hostpath -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}' \ No newline at end of file -- 2.16.6