How to install and upgrade MinIO Operator via Helm - cniackz/public GitHub Wiki

Objective:

To install and upgrade MinIO Operator via Helm

Tested:

  • Tue Jan 3 2023 @ 4 pm - PASSED!

Pre-Steps:

  • Have a cluster ready

Steps:

  1. From web page below download MinIO Operator Versions:
cd ~/Downloads/
wget https://github.com/minio/operator/blob/master/helm-releases/operator-4.4.22.tgz
wget https://github.com/minio/operator/blob/master/helm-releases/operator-4.5.4.tgz
  1. Install version above:
helm install \
     --namespace minio-operator \
     --create-namespace \
     minio-operator ./operator-4.4.22.tgz

You should see the installation:

$ helm install \
>      --namespace minio-operator \
>      --create-namespace \
>      minio-operator ./operator-4.4.22.tgz
NAME: minio-operator
LAST DEPLOYED: Tue Jan  3 16:17:32 2023
NAMESPACE: minio-operator
STATUS: deployed
REVISION: 1
TEST SUITE: None
NOTES:
1. Get the JWT for logging in to the console:
kubectl apply -f - <<EOF
apiVersion: v1
kind: Secret
metadata:
  name: console-sa-secret
  namespace: minio-operator
  annotations:
    kubernetes.io/service-account.name: console-sa
type: kubernetes.io/service-account-token
EOF
kubectl -n minio-operator  get secret console-sa-secret -o jsonpath="{.data.token}" | base64 --decode

2. Get the Operator Console URL by running these commands:
  kubectl --namespace minio-operator port-forward svc/console 9090:9090
  echo "Visit the Operator Console at http://127.0.0.1:9090"
$ helm list -n minio-operator
NAME          	NAMESPACE     	REVISION	UPDATED                             	STATUS  	CHART          	APP VERSION
minio-operator	minio-operator	1       	2023-01-03 16:02:29.832946 -0600 CST	deployed	operator-4.4.22	v4.4.22    
  1. Then you can upgrade:
helm upgrade \
     --namespace minio-operator \
     minio-operator ./operator-4.5.4.tgz
$ helm upgrade \
>      --namespace minio-operator \
>      minio-operator ./operator-4.5.4.tgz
Release "minio-operator" has been upgraded. Happy Helming!
NAME: minio-operator
LAST DEPLOYED: Tue Jan  3 16:17:56 2023
NAMESPACE: minio-operator
STATUS: deployed
REVISION: 2
TEST SUITE: None
NOTES:
1. Get the JWT for logging in to the console:
kubectl apply -f - <<EOF
apiVersion: v1
kind: Secret
metadata:
  name: console-sa-secret
  namespace: minio-operator
  annotations:
    kubernetes.io/service-account.name: console-sa
type: kubernetes.io/service-account-token
EOF
kubectl -n minio-operator  get secret console-sa-secret -o jsonpath="{.data.token}" | base64 --decode

2. Get the Operator Console URL by running these commands:
  kubectl --namespace minio-operator port-forward svc/console 9090:9090
  echo "Visit the Operator Console at http://127.0.0.1:9090"
$ helm list -n minio-operator
NAME          	NAMESPACE     	REVISION	UPDATED                             	STATUS  	CHART         	APP VERSION
minio-operator	minio-operator	2       	2023-01-03 16:17:56.773208 -0600 CST	deployed	operator-4.5.4	v4.5.4     
  • Notice app version went from v4.4.22 to v4.5.4, so yes this method works!