Helm Upgrade - cniackz/public GitHub Wiki
Objective:
To document how the helm upgrade works for MinIO Operator and its Tenant(s)
Steps:
- Assuming Operator and Tenant is already installed via Helm:
$ helm list -n minio-operator
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
minio-operator minio-operator 1 2023-04-10 18:58:30.701307 -0400 EDT deployed operator-5.0.2 v5.0.2
Chart is
operator-5.0.2
$ helm list -n tenant-ns
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
tenant-ns tenant-ns 1 2023-04-10 19:01:51.583706 -0400 EDT deployed tenant-5.0.2 v5.0.2
Chart is
tenant-5.0.2
- Upgrade Operator:
$ helm upgrade \
--namespace minio-operator \
minio-operator ./operator-5.0.3.tgz
New chart is
operator-5.0.3
$ helm list -n minio-operator
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
minio-operator minio-operator 2 2023-04-10 19:05:54.886557 -0400 EDT deployed operator-5.0.3 v5.0.3
- Restart pods under
minio-operator
namespace after the upgrade.
- Upgrade Tenant:
$ helm upgrade --namespace tenant-ns tenant-ns ./tenant-5.0.3.tgz
New chart is
tenant-5.0.3
$ helm list -n tenant-ns
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
tenant-ns tenant-ns 2 2023-04-10 19:09:54.68998 -0400 EDT deployed tenant-5.0.3 v5.0.3
- Restart pods under tenant's namespace.
- Check Tenant Status is Healthy by looking for the Green color in the UI or initialized state on the CLI:
- OpenShift:
$ oc get tenant -n tenant-ns
NAME STATE AGE
myminio Initialized 13m
- Kubernetes:
$ k get tenant -n tenant-ns
NAME STATE AGE
myminio Initialized 13m
Cesars-MacBook-Pro:Downloads cniackz$