Oracle Cloud Infrastructure Documentation

Upgrading the Version of Kubernetes Running on Master Nodes

When Container Engine for Kubernetes supports a newer version of Kubernetes than the version currently running on the master nodes in a cluster, you can upgrade the Kubernetes version running on the master nodes.

Important: After you’ve upgraded master nodes to a newer version of Kubernetes, you can’t downgrade the master nodes to an earlier Kubernetes version. It’s therefore important that before you upgrade the version of Kubernetes running on the master nodes, you test that applications deployed on the cluster are compatible with the new Kubernetes version.

Using the Console

To upgrade the version of Kubernetes running on the master nodes:

  1. In the Console, open the navigation menu. Under Solutions, Platform and Edge, go to Developer Services and click Container Clusters.
  2. Choose a Compartment you have permission to work in.

  3. On the Cluster List page, click the name of the cluster where you want to upgrade the version of Kubernetes running on the master nodes.

    If a newer version of Kubernetes is available than the one running on the master nodes in the cluster, the Upgrade Available button is enabled at the top of the Cluster page.

  4. Click Upgrade Available to upgrade the master nodes to a newer version.
  5. In the Upgrade Cluster Master dialog box, select the version of Kubernetes to which to upgrade the master nodes, and click Confirm.

The version of Kubernetes running on the master nodes is upgraded. From now on, the new version of Kubernetes will appear as an option when you’re defining new node pools for the cluster.

Using the API

For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.

Use the UpdateCluster operation to upgrade the version of Kubernetes running on the master nodes.