create_cluster_kubeconfig
Create a revocable kubeconfig credential for a managed Kubernetes cluster, enabling standing automation with admin or view access. Returns a bearer token embedded in YAML.
Instructions
Create a LONG-LIVED, revocable kubeconfig credential (a per-credential ServiceAccount) for a managed Kubernetes cluster, for standing automation (CI, GitOps). Requires scope services:write. role=admin (cluster-admin) or view (read-only); optional ttl is one of 30d, 90d, 1y, never (default 90d; "never" mints a 10-year token). SECURITY: the result is a LIVE CREDENTIAL — a kubeconfig YAML embedding a bearer token. Treat it as a secret: do NOT echo it back or repeat its contents unless the user explicitly asks; pass it straight to the consuming tool. Returns the raw kubeconfig YAML as a text block. service_id comes from list_services (a cloud-k8s service). Revoke later with revoke_cluster_kubeconfig.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | Optional token lifetime; one of 30d, 90d, 1y, never. Omit for the default (90d). | |
| name | Yes | Human label for the credential (shown in list_cluster_kubeconfigs). | |
| role | Yes | admin (cluster-admin) or view (read-only). | |
| service_id | Yes | Managed-Kubernetes service ID from list_services. |