get_tkc_kubeconfig
Retrieve the kubeconfig for a specified Tanzu Kubernetes Cluster (TKC) to enable kubectl access. Optionally write it to a file to keep credentials out of agent context.
Instructions
[READ] Get a kubeconfig for one TKC cluster.
Returns {cluster, kubeconfig}, or {cluster, written_to} when output_path is given. Run list_tkc_clusters first for name and namespace; use get_supervisor_kubeconfig instead for Supervisor-level access. Security: it carries a short-lived session token — always prefer output_path so the credential never enters agent context.
Args: name: TKC cluster name. namespace: Namespace holding it. output_path: File to write, e.g. '~/.kube/my.yaml'. Omit to return the kubeconfig inline. target: vCenter in config.yaml; omit for the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| target | No | ||
| namespace | Yes | ||
| output_path | No |