You can resize the control-plane node of a Google Distributed Cloud user cluster to
change its number of CPUs and amount of memory, for example, to support more
worker nodes as your cluster grows. Because resizing re-creates the node, a
user cluster with a single control-plane node might have a small amount of
downtime.

You can't resize the control-plane node manually if you enable
[automatic node resizing](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/node-auto-resize.md.txt).

To add or remove CPUs and memory in the control-plane node:

### Console

1. In the console, go to the **Google Kubernetes Engine clusters overview**
   page.

   [Go to GKE clusters](https://console.cloud.google.com/kubernetes/list/overview)
2. Select the Google Cloud project that the user cluster is in.

3. In the list of clusters, click the cluster that you want to modify, and
   then click **View details** in the **Details** panel.

4. Scroll down to the **Control Plane** section.

5. Click **Edit**
   next to **Control-plane node CPUs** or **Control-plane node memory** ,
   change the value, and click **Done**.

### Command line

1. Edit the
   [user cluster configuration file](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/user-cluster-configuration-file-latest.md.txt).
   Change the `masterNode.cpus` and `masterNode.memoryMB` to the values
   you want.

   ```console
   ...
   masterNode:
      cpus: 4
      memoryMB: 8192
      # How many machines of this type to deploy
      replicas: 3
   ...
   ```
2. Run this command to update the cluster:

   ```
   gkectl update cluster --kubeconfig ADMIN_CLUSTER_KUBECONFIG --config USER_CONFIG_FILE
   ```
   - Replace <var translate="no">ADMIN_CLUSTER_KUBECONFIG</var> with the path of your admin cluster kubeconfig file.
   - Replace <var translate="no">USER_CONFIG_FILE</var> with the path of your user cluster configuration file.