You can resolve user cluster resizing failures by checking MachineDeployments
and Machines for errors and by allocating more IP addresses when the cluster
runs out. Fixing these issues lets your worker nodes scale.

## Resizing a user cluster fails

If a resizing of a user cluster fails, complete the following steps:

1. Find the names of the MachineDeployments and the Machines:

   ```bash
   kubectl --kubeconfig USER_CLUSTER_KUBECONFIG get machinedeployments --all-namespaces
   kubectl --kubeconfig USER_CLUSTER_KUBECONFIG get machines --all-namespaces
   ```
2. Describe a MachineDeployment to view its logs:

   ```bash
   kubectl --kubeconfig USER_CLUSTER_KUBECONFIG describe machinedeployment MACHINE_DEPLOYMENT_NAME
   ```
3. Check for errors on newly-created Machines:

   ```bash
   kubectl --kubeconfig USER_CLUSTER_KUBECONFIG describe machine MACHINE_NAME
   ```

## No addresses can be allocated for cluster resize

This issue occurs if there are not enough IP addresses available to resize a
user cluster.

`kubectl describe machine` displays the following error:

    Events:
    Type     Reason  Age                From                    Message
    ---     ---  ---               ---                    ---
    Warning  Failed  9s (x13 over 56s)  machineipam-controller  ipam: no addresses can be allocated

To resolve this issue,
[Allocate more IP addresses](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/how-to/resizing-a-user-cluster.md.txt)
for the cluster. Then, delete the affected Machine:

```bash
kubectl --kubeconfig USER_CLUSTER_KUBECONFIG delete machine MACHINE_NAME
```

Google Distributed Cloud creates a new Machine and assigns it one of the newly
available IP addresses.

## What's next

If you need additional assistance, reach out to

[Cloud Customer Care](https://cloud.google.com/support-hub).

You can also see
[Getting support](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/getting-support.md.txt) for more information about support resources, including the following:

- [Requirements](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/getting-support.md.txt#support_requirements) for opening a support case.
- [Tools](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/getting-support.md.txt#support_tools) to help you troubleshoot, such as logs and metrics.
- Supported [components](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/getting-support.md.txt#whats_supported), [versions](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/getting-support.md.txt#version-support), and [features](https://docs.cloud.google.com/kubernetes-engine/distributed-cloud/vmware/docs/getting-support.md.txt#supported_features) of Google Distributed Cloud for VMware (software only).