Skip to content
AnchrasDocumentation
Browse documentation

Getting started / User guide

Create your first cluster

Provision a cluster on connected infrastructure and confirm node readiness before deploying workloads.

On this page

Create a self-managed cluster on an online, supported instance. If you already run EKS or AKS, use managed cluster import instead.

Before you begin

Connect an instance, configure private networking, and confirm free CPU, memory, and storage. Cluster creation allocates machines and can incur infrastructure costs.

Create the cluster

  1. Open Clusters and start the create-cluster flow.
  2. Enter a name and select an eligible instance for placement.
  3. Choose the cluster distribution and a sizing profile offered by the form. Review the resolved resources before submitting.
  4. Submit the request and watch provisioning steps on the cluster detail page.
  5. Wait for the cluster and its nodes to report ready before installing applications.

For CLI provisioning, inspect available instances and shared sizing profiles:

bash
anchras instances list
anchras clusters profiles
anchras clusters create --name first-cluster --host-id <instance-id> --size <profile-id>
anchras clusters list
anchras clusters get <cluster-id>

Use instance and profile IDs returned by your installation. Current releases use shared --size profiles. The CLI also accepts legacy --preset small|medium|large, or all three custom resource flags (--cpu, --memory-mb, --disk-gb); choose one sizing mode rather than combining them. Check instance capacity before provisioning.

Connect to your cluster

Authorized administrators can retrieve a kubeconfig. Treat it as a credential:

bash
umask 077
anchras clusters kubeconfig <cluster-id> > first-cluster.kubeconfig
kubectl --kubeconfig first-cluster.kubeconfig get nodes

Your machine must be able to reach the cluster endpoint described in that file. Anchras also provides an audited cluster connection gateway; see Clusters.

Troubleshooting

For a stalled create, read the failing provisioning step, confirm the instance is online, and check available disk space and private networking. Do not start another cluster with the same intended workload until you understand whether the first attempt allocated provider resources.

A successful kubeconfig download does not prove network reachability. If kubectl times out, check the endpoint path and tailnet access; if it reports unauthorized, refresh access and verify permissions.

Next steps

Deploy your first application. The Clusters service guide covers worker nodes and ongoing operations.

CLI commands

Install and authenticate using the CLI guide. The table describes command families; required arguments are shown in their usage output.

CommandPurpose
clusters listList 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 registerList or register the same built-in and org-scoped sizing profiles used by guest VMs.
clusters createCreate 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-nodeAdd 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-managedDiscover 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-managedImport 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-credentialsRefresh 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.