create_namespace
Provision a vSphere Namespace on a Supervisor Cluster to host Tanzu Kubernetes workloads. Set storage policy and resource limits, or use dry-run mode to preview the creation.
Instructions
[WRITE] Create a vSphere Namespace on a Supervisor Cluster.
Returns {namespace, status: "created", cluster}, or {dry_run, spec} — a dry run unless dry_run=False. Use update_namespace instead when it already exists; confirm with get_namespace afterwards.
Args: name: Namespace name (lowercase, no spaces). cluster_id: Supervisor MoRef (from check_vks_compatibility). storage_policy: Policy ID (from list_supervisor_storage_policies). cpu_limit: MHz. Omit for no limit. memory_limit_mib: MiB. Omit for no limit. description: Free-text label. Omit for none. dry_run: Preview 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 | ||
| cpu_limit | No | ||
| cluster_id | Yes | ||
| description | No | ||
| storage_policy | Yes | ||
| memory_limit_mib | No |