Upgrade Kubernetes Off-The-Shelf (KOTS)
Kubernetes Off-The-Shelf (KOTS) is a deployment and management platform for Kubernetes applications that provides both online and airgap installation options.
This topic explains how to upgrade KOTS in online and airgap environments.
Prerequisites
-
Ensure you have access to the Kubernetes cluster where KOTS is installed
-
Configure
kubectlwith cluster access -
For airgap environments:
-
Have access to a container registry
-
Have registry credentials ready
-
Upgrade KOTS in your environment
-
Online
-
Airgap
-
Go to the KOTS GitHub releases page.
-
Download the latest KOTS binary
tar.gzfile for your OS. -
Extract the downloaded
tar.gzfile:tar xzf kots_OS_ARCH.tar.gzReplace
OSandARCHwith your OS and architecture. -
Rename the
kotsbinary tokubectl-kots. -
To get the
kubectl-kotsplugin location, run the following command:which kubectl-kots -
Move the binary to the location shown by the previous command:
mv kots /usr/local/bin/kubectl-kotsYou must complete the local CLI upgrade steps above before you proceed with the KOTS upgrade.
-
To upgrade KOTS, run the following command:
kubectl kots admin-console upgrade --namespace KOTS_NAMESPACEReplace
KOTS_NAMESPACEwith your KOTS namespace. -
Verify that KOTS is running with the new version:
-
Check the local CLI version:
kubectl kots version -
Open the KOTS admin console and check the version in the footer to verify the version running in the cluster.
-
-
Go to the KOTS GitHub releases page.
-
Download the latest KOTS binary
tar.gzfile for your OS. -
Download the latest
kotsadm.tar.gzcontainer images. -
Extract the downloaded
tar.gzfiles:tar xzf kots_OS_ARCH.tar.gz tar xzf kotsadm.tar.gzReplace
OSandARCHwith your OS and architecture. -
Rename the
kotsbinary tokubectl-kots. -
To get the
kubectl-kotsplugin location, run the following command:which kubectl-kots -
Move the binary to the location shown by the previous command:
mv kots /usr/local/bin/kubectl-kotsYou must complete the local CLI upgrade steps above before you proceed with the KOTS upgrade.
-
Upload the
kotsadmimages to your registry:kubectl kots admin-console push-images ./kotsadm.tar.gz REGISTRY_DOMAIN/REGISTRY_NAMESPACE \ --registry-username REGISTRY_USERNAME \ --registry-password REGISTRY_PASSWORDReplace the following:
-
REGISTRY_DOMAIN: Your registry domain -
REGISTRY_NAMESPACE: Your registry namespace -
REGISTRY_USERNAME: Your registry username -
REGISTRY_PASSWORD: Your registry password
-
-
Upgrade KOTS:
kubectl kots admin-console upgrade --namespace KOTS_NAMESPACE \ --kotsadm-registry REGISTRY_DOMAIN \ --kotsadm-namespace REGISTRY_NAMESPACE \ --registry-username REGISTRY_USERNAME \ --registry-password REGISTRY_PASSWORDReplace the following:
-
KOTS_NAMESPACE: Your KOTS namespace -
REGISTRY_DOMAIN: Your registry domain -
REGISTRY_NAMESPACE: Your registry namespace -
REGISTRY_USERNAME: Your registry username -
REGISTRY_PASSWORD: Your registry password
-
-
Verify that KOTS is running with the new version:
-
Check the local CLI version:
kubectl kots version -
Open the KOTS admin console and check the version in the footer to verify the version running in the cluster.
-