Clusters / User guide
Clusters
Provision self-managed clusters, manage nodes, and connect to workloads on your infrastructure.
On this page
Before you begin
Connect eligible instances, configure private networking, and check CPU, memory, storage, and permissions. Have a ready storage provisioner before deploying stateful workloads.
Get started
- Choose a cluster name, distribution, placement, and sizing profile in Clusters.
- Submit creation and inspect the per-step provisioning status.
- Verify that the cluster and all expected nodes report ready.
- Retrieve an authorized kubeconfig or use the audited connection gateway to inspect workloads.
Operate the service
Add worker nodes when more capacity is needed. Drain a worker before removing it so Kubernetes can reschedule workloads. Use the explicit control-plane scale operation for supported 1, 3, or 5 member layouts; direct removal of a control-plane node is blocked. Protect downloaded kubeconfigs as credentials.
Availability and limits
Self-managed operations depend on eligible instances and network reachability. Managed EKS/AKS imports have a separate lifecycle and do not support every agent-driven operation. High availability requires enough distinct failure domains and capacity; increasing a node count alone does not provide it.
Troubleshooting
Inspect provisioning steps for allocation or bootstrap errors. For access failures, distinguish endpoint reachability from authentication. For workloads that remain Pending, inspect resource requests, taints, and PVC binding.
Next steps
CLI commands
Install and authenticate using the CLI guide. The table describes command families; required arguments are shown in their usage output.
| Command | Purpose |
|---|---|
clusters list | List Kubernetes clusters in one project of the active org (--project); --search matches a name substring and --status degraded,error keeps the clusters in any of those statuses (the console's "Needs attention" set). create and import-managed take --project too. |
clusters profiles / profiles register | List or register the same built-in and org-scoped sizing profiles used by guest VMs. |
clusters create | Create a self-managed cluster with --name, --host-id, and optional --size <profile-id>. Explicit --cpu, --memory-mb, --disk-gb are mutually exclusive with a profile. --preset retains legacy cluster sizes. |
clusters get <id> | Cluster + node table (GetCluster). |
clusters events <id> | The cluster's step history (ListClusterEvents), newest first: every orchestration step (create, add node, drain, upgrade, scale, delete) that started, succeeded or failed. --node <node_id> and --step <name> narrow it; --page/--page-size (max 200) page through older events. Table output shows a failed step's first output line; -o json carries the whole captured output (capped at 64 KB). Needs cluster.read in the cluster's project, like get. |
clusters commands get <cluster_id> <command_id> | One of the cluster's agent commands (GetClusterCommand), such as the command_id install-tailscale-operator prints: status (pending, running, completed or failed) and its timestamps as key=value lines. A failed command adds a fixed reason_code (agent_failed, not_picked_up, timed_out or abandoned) and an error: a fixed summary, followed for agent_failed by the first line of the agent's own answer (at most 1 KB). The exit status is 0 for a failed command too; read status. Needs cluster.read in the cluster's project, like get. |
clusters kubeconfig <id> | Decrypted kubeconfig (admin/owner). Meta line goes to stderr; payload to stdout (-o json wraps the string as kubeconfig). |
clusters connect <id> | Print or write a synthetic kubeconfig for the audited connect gateway. The gateway prefers a direct org-Tailnet path and falls back to an authenticated reverse tunnel through a connected in-cluster agent for NAT/private clusters. |
clusters attach <id> | Mint a one-time cluster-agent token and print the in-cluster agent manifest. Use --apply to pipe it to kubectl apply -f -; optional --namespace and --image. |
clusters add-node | Add a worker node to a ready self-managed cluster. Flags: --cluster, --host-id, optional --size <profile-id> or explicit --cpu, --memory-mb, --disk-gb. |
clusters drain-node <node_id> | Drain a node through the cluster control plane. Flag: --timeout-seconds. |
clusters remove-node <node_id> | Drain, uninstall, and destroy a worker node VM. Direct control-plane removal is intentionally blocked; use scale-control-plane. |
clusters scale-control-plane <id> | Scale HA control planes to --target 1, 3, or 5 via the persisted scale plan. |
clusters list-managed | Discover EKS/AKS clusters from a connected cloud account before import. AWS requires --region; AKS can list the subscription or filter by resource group with --region. |
clusters import-managed | Import EKS/AKS by connected cloud account. Kubeconfig file remains a manual fallback; EKS/AKS can import through provider APIs when credentials are sufficient. |
clusters refresh-managed-credentials | Refresh stored kubeconfig credentials for an imported managed cluster from provider APIs, or replace them from a kubeconfig file. |
API reference
Browse procedures, request and response types, and download the complete OpenAPI contract.
