create_tkc_cluster
Provision a Tanzu Kubernetes Cluster in a vSphere Namespace. Preview the blast radius and YAML first, then confirm to create.
Instructions
[WRITE] Create a TanzuKubernetesCluster in a vSphere Namespace.
Without confirm=True this only previews: it returns blast_radius (node counts, VM class, the YAML manifest, and whether the name is taken) and creates nothing. Show it to the user and get their decision. Do not set confirm=True on your own because the user asked earlier — they have not seen the preview yet. confirm=True returns {action: "created", name, namespace, status: "creating", yaml, blast_radius} and provisions in the background — poll get_tkc_cluster until phase is running. Refused when the name is taken or the namespace's clusters could not be read. Call get_tkc_available_versions for k8s_version and list_vm_classes first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Cluster name. | |
| target | No | vCenter in config.yaml; omit for the default. | |
| confirm | No | False (default) returns the blast radius and changes nothing. True applies it. | |
| dry_run | No | Deprecated alias for confirm; removed in the next minor release. dry_run=False acts, dry_run=True previews. | |
| 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. |