ocne cluster stage
Sets the target Kubernetes version for the cluster and all its nodes.
Nodes are configured to poll the container registry to pull and stage the Oracle Container Host for Kubernetes (OCK)
image for the target Kubernetes version. After the image is staged, use the ocne
cluster update
command to install the image and reboot the nodes.
ocne cluster stage
[{-c|--config} path]
[{-r|--os-registry} registry]
[{-t|--transport} transport]
{-v|--version} version
Where:
-
{-c|--config} path
-
The path to a configuration file that contains the definition of the cluster. If this value isn't provided, a small (ephemeral) cluster might be created, using the default hypervisor, for the system where the command is run.
-
{-r|--os-registry} registry
-
The name of the container registry to use during the upgrade. The default is
container-registry.oracle.com/olcne
. -
{-t|--transport} transport
-
The transport type to use during the upgrade. The default is
ostree-unverified-registry
.For a list of the available transports, see the upstream OSTree documentation.
-
{-v|--version} version
-
The target Kubernetes version. This must be the next available minor Kubernetes version.
Example 4-59 Set the target Kubernetes version in a cluster
To set the target Kubernetes version in a cluster, and stage the OCK image when it's available:
ocne cluster stage --version 1.31