Documentation

Documentation

kubectl minio tenant upgrade

Table of Contents

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.2022-12-07T00-56-37Z

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.