> ## Documentation Index
> Fetch the complete documentation index at: https://docs.layerrail.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Resize a Kubernetes cluster

> Change worker node count, node size, and pool configuration for a LayerRail Kubernetes cluster without disrupting running workloads.

Resize a cluster when workloads need more capacity or when you want to reduce cost after a load test.

## When to resize

Resize when:

* Pods are pending because there is not enough CPU or memory.
* Nodes stay near resource limits.
* You need extra capacity before a launch.
* Development workloads no longer need as many workers.

## Change worker count

<Steps>
  <Step title="Open the cluster">
    Go to **Kubernetes Clusters** and open the target cluster.
  </Step>

  <Step title="Open node pools">
    Choose the node pool you want to resize.
  </Step>

  <Step title="Update worker count">
    Increase or decrease the worker count.
  </Step>

  <Step title="Watch node state">
    Use `kubectl get nodes` to verify the cluster sees the desired nodes.
  </Step>
</Steps>

```bash theme={null}
kubectl get nodes
kubectl get pods --all-namespaces
```

<Warning>
  Scaling down can evict pods. Make sure production workloads have enough replicas and disruption budgets before reducing worker count.
</Warning>
