get_tkc_kubeconfig
Retrieve the kubeconfig for a Tanzu Kubernetes Cluster (TKC) to access the cluster. Write to a file to reduce credential exposure.
Instructions
[READ] Get kubeconfig for a TKC cluster.
Security: The returned kubeconfig contains a short-lived session token. Prefer writing to file (output_path) over returning inline to reduce credential exposure in agent context.
Args: name: TKC cluster name. namespace: vSphere Namespace. output_path: Write to file if provided (e.g. '~/.kube/my-cluster.yaml'). Returns kubeconfig string if not specified.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| namespace | Yes | ||
| output_path | No | ||
| target | No |