get_tkc_kubeconfig
Retrieve a kubeconfig for a TKC cluster by providing name and namespace. Optionally write to a file to keep credentials secure.
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 |