Skip to content

How to upgrade Operator and Tenant when using ArgoCD

Cesar Celis Hernandez edited this page Oct 4, 2023 · 5 revisions

Objective:

To show how to upgrade Operator and Tenant when using ArgoCD

Pre-Steps:

  1. Have a cluster ready and deployed with Operator and Tenant installed via ArgoCD as shown in our wiki or similar: ArgoCD with MinIO Example

Steps to Upgrade Operator:

  1. Edit in your Git Repository the Operator Helm Chart by looking at our Supported Charts in https://github.com/minio/operator/tree/master/helm-releases or point your App to use new path for the chart with the objective of having new values defined in your Git Repo for your App.
  1. Then Synch the changes and new Operator will be in place:
Screenshot 2023-10-04 at 4 54 56 PM
  1. Operator is now in 5.0.9:
$ k get pods minio-operator-5df446dcc5-frlxt -n minio-operator -o yaml | k neat > operator-pod.yaml
$ yq '.spec.containers[0].image' operator-pod.yaml 
quay.io/minio/operator:v5.0.9

Steps to Upgrade Tenant:

  1. Similarly update the Tenant in your ArgoCD App by editing the values in your Helm Chart of your repo or pointing to a new one.
Screenshot 2023-10-04 at 4 59 19 PM
  1. Then Sync changes.

  2. Now sts and minio pods are using the image quay.io/minio/minio:RELEASE.2023-09-07T02-05-02Z defined in the latest chart we provided.

$ k get pod myminio-pool-0-0 -n minio-tenant -o yaml | k neat > minio-pod.yaml
$ yq '.spec.containers[0].image' minio-pod.yaml 
quay.io/minio/minio:RELEASE.2023-09-07T02-05-02Z
  1. Verify Tenant is still healthy:
Screenshot 2023-10-04 at 5 03 19 PM
$ k get tenant -n minio-tenant
NAME      STATE         AGE
myminio   Initialized   35m
$ k get tenant -n minio-tenant -o yaml > tenant.yaml
$ yq '.items[0].status' tenant.yaml 
availableReplicas: 4
certificates:
  autoCertEnabled: true
  customCertificates: {}
currentState: Initialized
drivesOnline: 16
healthStatus: green
pools:
  - legacySecurityContext: false
    ssName: myminio-pool-0
    state: PoolInitialized
provisionedBuckets: true
revision: 0
syncVersion: ""
usage:
  rawCapacity: 171798691840
  rawUsage: 689775116288
writeQuorum: 12
Clone this wiki locally