Documentation

kubectl minio tenant upgrade

Description

Command Requires MinIO Operator

Use the following command to validate that the operator is online and available prior to running this command:

kubectl get deployments -A --field-selector metadata.name=minio-operator

Issue the kubectl minio init command to initiate the operator if it is not already running in the Kubernetes cluster.

Upgrades the minio server container image used by the MinIO Tenant.

Important

MinIO upgrades the image used by all pods in the Tenant at once. Applications typically transparently retry operations against the MinIO Tenant, such that there should be no perceived downtime.

Test all upgrades in a staging environment, such as a separate MinIO Tenant, before applying to production tenants.

Syntax

The following example expands a MinIO Tenant with a Pool consisting of 4 MinIO servers with 8 drives each and a total additional capacity of 32Ti:

kubectl minio tenant upgrade            \
                       minio-tenant-1   \
                       --image  quay.io/minio/minio:RELEASE.2024-04-06T05-26-02Z

The command has the following syntax:

kubectl minio tenant upgrade
                       TENANT_NAME    \
                       --image        \
                       --namespace    \
                       [--output]

Flags

The command supports the following flags:

TENANT_NAME
Required

The name of the MinIO tenant to upgrade.

--image
Required

The container image to use for upgrading the MinIO Tenant.

--namespace
Optional

The namespace in which to look for the MinIO Tenant.

Defaults to minio.

--output
Optional

Displays the generated YAML objects, but does not upgrade the tenant.