scale_tkc_cluster
Scale the worker node count of a TanzuKubernetesCluster. Specify cluster name, namespace, and desired worker count; node provisioning or removal happens asynchronously.
Instructions
[WRITE] Scale the worker node count of an existing TanzuKubernetesCluster (TKC).
Asynchronous: patches the cluster spec and returns immediately with status "scaling" — node provisioning or removal continues in the background; poll get_tkc_cluster to watch progress. Scales workers only (control plane is unchanged); use upgrade_tkc_cluster to change the K8s version instead. Not destructive, but reducing worker_count drains the removed nodes. Audited to ~/.vmware/audit.db (SQLite) and ~/.vmware-vks/audit.log (JSON Lines).
Args: name: TKC cluster name (discover via list_tkc_clusters). namespace: vSphere Namespace containing the cluster. worker_count: Desired total worker node count, integer >= 1 (values below 1 are rejected with an error). pool_name: Node pool (machineDeployment) to scale. Omit to scale the first existing pool. Other pools are always preserved. target: Name of a vCenter entry in ~/.vmware-vks/config.yaml. Omit to use the default target defined in that file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| target | No | ||
| namespace | Yes | ||
| pool_name | No | ||
| worker_count | Yes |