create_tkc_cluster
Create a TanzuKubernetesCluster in an existing vSphere Namespace. Use dry-run to preview YAML, then set dry_run=False to provision.
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.
Args: name: Cluster name. namespace: Must already exist (see list_namespaces). k8s_version: e.g. 'v1.28.4+vmware.1'. vm_class: Node sizing, e.g. 'best-effort-large'. control_plane_count: 1 or 3. worker_count: Worker nodes (>= 1). storage_class: Storage class. dry_run: YAML plan only (default: True). target: vCenter in config.yaml; omit for the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| target | No | ||
| dry_run | No | ||
| vm_class | Yes | ||
| namespace | Yes | ||
| k8s_version | Yes | ||
| worker_count | No | ||
| storage_class | No | vsphere-storage | |
| control_plane_count | No |