create_tkc_cluster
Provision a Tanzu Kubernetes Cluster in a vSphere Namespace with a chosen Kubernetes version and VM class. Generates a YAML plan by default; set dry_run false to create the cluster in the background.
Instructions
[WRITE] Create a TanzuKubernetesCluster in a vSphere Namespace.
A dry run unless you pass dry_run=False; it then returns {name, namespace, status: "creating", yaml} and provisions in the background — poll get_tkc_cluster until phase is running. Call get_tkc_available_versions for k8s_version and list_vm_classes for vm_class first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Cluster name. | |
| target | No | vCenter in config.yaml; omit for the default. | |
| dry_run | No | YAML plan only (default: True). | |
| vm_class | Yes | Node sizing, e.g. 'best-effort-large'. | |
| namespace | Yes | Must already exist (see list_namespaces). | |
| k8s_version | Yes | e.g. 'v1.28.4+vmware.1'. | |
| worker_count | No | Worker nodes (>= 1). | |
| storage_class | No | Storage class. | vsphere-storage |
| control_plane_count | No | 1 or 3. |