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:
gkectl update credentials
- Use this to update cluster credentials.gkectl update admin
- Run this command after you make a change in the admin cluster configuration file so as to update the admin cluster.gkectl update cluster
- Run this command after you make a change in the user cluster configuration file so as to update the user cluster.
What can and cannot be updated in clusters
Many features in both the admin cluster and user clusters cannot be updated after the cluster is created.
To see what settings can be updated for the admin cluster, run:
gkectl update admin --help
To see what settings can be updated for a user cluster, run:
gkectl update cluster --help
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 enable or disable 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 node repair and health checking for an existing admin cluster
Disable node repair and health checking for an existing admin cluster
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 namekubeconfig
.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 nameadmin-cluster.yaml
.
Rotate a connect-register service account key for the admin cluster
To rotate a connect-register service account key:
Create a new connect-register service account key file.
Edit the gkeConnect.registerServiceAccountKeyPath field in the admin cluster configuration file to point to the path of the new key file.
Run the
gkectl update admin
command.
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 logging and monitoring for a user cluster (preview)
To enable logging and monitoring, fill in the
stackdriver
section in your user cluster configuration file, and then update your cluster.
To disable logging and monitoring, remove the
stackdriver
section from your user cluster configuration file, and then update your cluster.
To update your cluster:
gkectl update cluster --kubeconfig ADMIN_CLUSTER_KUBECONFIG --config USER_CLUSTER_CONFIG_FILE
Replace the following:
ADMIN_CLUSTER_KUBECONFIG
: the path of the admin cluster kubeconfig file.USER_CLUSTER_CONFIG_FILE
: the path of your user cluster configuration file.
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.
Enable node repair and health checking for an existing user cluster
Disable node repair and health checking for an existing user cluster
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.
Rotate a connect-register service account key for a user cluster
To rotate a connect-register service account key:
Create a new connect-register service account key file.
Edit the gkeConnect.registerServiceAccountKeyPath field in the user cluster configuration file to point to the path of the new key file.
Run the
gkectl update cluster
command.