From baa1b92bcc9e4f8431682f72395af86395bb5eef Mon Sep 17 00:00:00 2001 From: Gutium Alexei Date: Fri, 7 Jun 2024 20:02:41 +0300 Subject: [PATCH 1/2] fix updating openebs repo url --- stacks/openebs-nfs-provisioner/deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stacks/openebs-nfs-provisioner/deploy.sh b/stacks/openebs-nfs-provisioner/deploy.sh index ac7cd649..38abcf3d 100755 --- a/stacks/openebs-nfs-provisioner/deploy.sh +++ b/stacks/openebs-nfs-provisioner/deploy.sh @@ -5,7 +5,7 @@ set -e ################################################################################ # repo ################################################################################ -helm repo add openebs https://openebs.github.io/openebs +helm repo add --force-update openebs https://openebs.github.io/openebs helm repo update > /dev/null ################################################################################ From c98b6df9683ab6df62908f78a5f892028c0deec4 Mon Sep 17 00:00:00 2001 From: Gutium Alexei Date: Mon, 10 Jun 2024 22:51:35 +0300 Subject: [PATCH 2/2] Update openebs to the latest version --- stacks/openebs-nfs-provisioner/deploy.sh | 20 ++++++++++++-------- stacks/openebs-nfs-provisioner/uninstall.sh | 2 +- stacks/openebs-nfs-provisioner/upgrade.sh | 18 ++++++++++++------ stacks/openebs-nfs-provisioner/values.yml | 1 + 4 files changed, 26 insertions(+), 15 deletions(-) diff --git a/stacks/openebs-nfs-provisioner/deploy.sh b/stacks/openebs-nfs-provisioner/deploy.sh index 38abcf3d..6e8bbf7b 100755 --- a/stacks/openebs-nfs-provisioner/deploy.sh +++ b/stacks/openebs-nfs-provisioner/deploy.sh @@ -11,9 +11,10 @@ helm repo update > /dev/null ################################################################################ # chart ################################################################################ -STACK="openebs-nfs-provisioner" -CHART="openebs-nfs/nfs-provisioner" +STACK="openebs" +CHART="openebs/openebs" NAMESPACE="openebs-nfs-provisioner" +CHART_VERSION="4.0.1" if [ -z "${MP_KUBERNETES}" ]; then # use local version of values.yml @@ -28,14 +29,17 @@ else STORAGE_CLASS_MANIFEST="https://raw.githubusercontent.com/digitalocean/marketplace-kubernetes/master/stacks/openebs-nfs-provisioner/assets/manifests/sc-nfs-rwx.yaml" fi -helm upgrade "$STACK" "$CHART" \ - --atomic \ +helm upgrade $STACK --namespace $NAMESPACE \ + $CHART \ --create-namespace \ --install \ - --set cstor.enabled=true \ --set nfs-provisioner.enabled=true \ - --timeout 8m0s \ - --namespace "$NAMESPACE" \ - --values "$values" + --set lvm-localpv.crds.lvmLocalPv.enabled=false \ + --set zfs-localpv.crds.zfsLocalPv.enabled=false \ + --set mayastor.agents.core.rebuild.partial.enabled=false \ + --set openebs-crds.csi.volumeSnapshots.enabled=false \ + --timeout 20m0s \ + --values "$values" \ + --version "$CHART_VERSION" kubectl apply -f "$STORAGE_CLASS_MANIFEST" diff --git a/stacks/openebs-nfs-provisioner/uninstall.sh b/stacks/openebs-nfs-provisioner/uninstall.sh index f58bb51e..85df3e92 100644 --- a/stacks/openebs-nfs-provisioner/uninstall.sh +++ b/stacks/openebs-nfs-provisioner/uninstall.sh @@ -5,7 +5,7 @@ set -e ################################################################################ # chart ################################################################################ -STACK="openebs-nfs-provisioner" +STACK="openebs" NAMESPACE="openebs-nfs-provisioner" helm uninstall "$STACK" \ diff --git a/stacks/openebs-nfs-provisioner/upgrade.sh b/stacks/openebs-nfs-provisioner/upgrade.sh index 4abac2d5..d299c61d 100644 --- a/stacks/openebs-nfs-provisioner/upgrade.sh +++ b/stacks/openebs-nfs-provisioner/upgrade.sh @@ -5,14 +5,14 @@ set -e ################################################################################ # repo ################################################################################ -helm repo add openebs-nfs https://openebs.github.io/dynamic-nfs-provisioner +helm repo add --force-update openebs https://openebs.github.io/openebs helm repo update > /dev/null ################################################################################ # chart ################################################################################ -STACK="openebs-nfs-provisioner" -CHART="openebs-nfs/nfs-provisioner" +STACK="openebs" +CHART="openebs/openebs" NAMESPACE="openebs-nfs-provisioner" if [ -z "${MP_KUBERNETES}" ]; then @@ -24,6 +24,12 @@ else values="https://raw.githubusercontent.com/digitalocean/marketplace-kubernetes/master/stacks/openebs-nfs-provisioner/values.yml" fi -helm upgrade "$STACK" "$CHART" \ - --namespace "$NAMESPACE" \ - --values "$values" +helm upgrade "$STACK" --namespace "$NAMESPACE" \ + "$CHART" \ + --set nfs-provisioner.enabled=true \ + --set lvm-localpv.crds.lvmLocalPv.enabled=false \ + --set zfs-localpv.crds.zfsLocalPv.enabled=false \ + --set mayastor.agents.core.rebuild.partial.enabled=false \ + --set openebs-crds.csi.volumeSnapshots.enabled=false \ + --timeout 20m0s \ + --version "$CHART_VERSION" diff --git a/stacks/openebs-nfs-provisioner/values.yml b/stacks/openebs-nfs-provisioner/values.yml index e014e5d7..6f185361 100644 --- a/stacks/openebs-nfs-provisioner/values.yml +++ b/stacks/openebs-nfs-provisioner/values.yml @@ -1,3 +1,4 @@ # openebs-nfs nfsStorageClass: backendStorageClass: "do-block-storage" + enabled: false