Version 1.8. This version is supported as outlined in the Anthos version support policy, offering the latest patches and updates for security vulnerabilities, exposures, and issues impacting Anthos clusters on VMware (GKE on-prem). Refer to the release notes for more details. This is not the most recent version.

Updating a cluster

This page discusses what settings you can update in your admin cluster and user clusters.

Typically, you change a single setting in a configuration file, and then run the gkectl update command with the appropriate parameters. To update multiple settings, change one setting at a time and run the command repeatedly.

The gkectl update command takes one of the following forms, along with the parameters appropriate for the feature you want to update:

Admin cluster updates

You can update various features of your admin cluster.

Allocate additional static IP addresses

If your configuration uses static IP addresses, you must check how many you are using and add additional ones if needed, when you upgrade an admin workstation or admin cluster.

Enable or disable node resizing for the control-plane nodes of a user cluster

You can enable or disable automatic resizing of the control-plane nodes for the user cluster. These nodes are in the admin cluster.

Enable or disable cluster backup

For an admin cluster, you can enable cluster backup or disable cluster backup.

Enable or disable vSphere resource metrics

If you change the value of stackdriver.disableVsphereResourceMetrics in the admin cluster configuration file, run this command to update your configuration:

gkectl update admin --kubeconfig ADMIN_CLUSTER_KUBECONFIG --config ADMIN_CLUSTER_CONFIG_FILE

Update vCenter certificate reference for the admin cluster

If your vCenter certificate has changed, update the vCenter certificate reference. You must update both the admin cluster and all user clusters.

Enable automatic resizing of addon nodes for the admin cluster (preview)

You can update to enable automatic resizing of addon nodes to enable or [disable]((/anthos/clusters/docs/on-prem/1.8/how-to/node-auto-resize#disable_node_resizing_for_the_add-on_nodes_of_an_admin_cluster) automatic resizing of addon nodes for the admin cluster.

Enable or disable automatic node repair for the admin cluster (preview)

You can enable or disable automatic node repair for your admin cluster by changing the appropriate setting in the admin cluster configuration file, and running the gkectl update admin command.

Enable or disable anti-affinity groups (preview)

If you change the value of antiAffinityGroups.enabled in the admin cluster configuration file, run the following command to update your configuration:

gkectl update admin --kubeconfig ADMIN_CLUSTER_KUBECONFIG --config ADMIN_CLUSTER_CONFIG_FILE

Replace the following:

  • ADMIN_CLUSTER_KUBECONFIG: the path of your kubeconfig file. You can omit this flag if the file is in your current directory and has the name kubeconfig.

  • ADMIN_CLUSTER_CONFIG_FILE: the path of your admin cluster configuration file. You can omit this flag if the file is in your current directory and has the name admin-cluster.yaml.

User cluster updates

You can update your user clusters by editing the setting in the user configuration file and then running gkectl update cluster with the appropriate parameters. Here are the changes you can make to your user clusters.

Allocate additional static IP addresses

If your configuration uses static IP addresses, you must check how many you are using and add additional ones if needed, when you make one of these changes:

Resize a user cluster by updating the nodePool settings

You can resize a user cluster by updating the replicas value in the nodePools section, and then running the gkectl update cluster command.

Enable or disable vSphere resource metrics

You can enable or disable vSphere resource metrics in the user cluster configuration file, and then run the gkectl update cluster command.

Update vCenter certificate reference for user clusters

If your vCenter certificate has changed, update the vCenter certificate reference. You must update both the admin cluster and all user clusters.

Register a user cluster

When you create a cluster, you can register it by filling out the gkeConnect section in the user cluster configuration file before creating it. If you did not register the cluster at the time of creation, you can subsequently register an existing user cluster by editing the configuration file to add the gkeConnect section and then run the gkectl update cluster command.

Enable or disable automatic node repair for user clusters

You can enable or disable automatic node repair for your user by changing the appropriate setting in the user cluster configuration file, and running the gkectl update cluster command.

Auto-resizing a node in a user cluster

To enable auto-resizing of a node in a user cluster, edit the user cluster configuration file and run the gkectl update command.

Enable or disable cloud audit logging on a user cluster

You can enable cloud audit logging or disable cloud audit logging.

Disable vSphere CSI driver

By default, the vSphere CSI driver is enabled. You can disable the vSphere CSI driver.