Prerequisites
- A Kubernetes cluster you can reach with
kubectlandhelm. - Permission to grant the access you choose: cluster-wide access, or access to the namespaces you list. The namespaces must already exist.
Attach the cluster
1
Start a new cluster
In the Clusters dashboard, click New cluster. Set Cluster type to Your existing Kubernetes cluster.
2
Name the cluster and choose its access
Enter a Cluster name (lowercase letters, numbers, and hyphens). Under Access, choose All namespaces or Selected namespaces, and list the namespaces separated by commas. Click Continue, then Create cluster.
3
Run the connect command
Click Connect cluster and then Create command. Run the Helm command with
kubectl configured for your cluster. The command is single-use and shown once; creating a new one invalidates the previous command.It installs the agent and its updater into the akua-system namespace.4
Wait for the connection
The Cluster moves from
awaiting_agent to configuring and then ready once the agent connects and Akua has placed what it needs. Akua places a tunnel connector and a private ingress gateway there for public URLs.What the agent can do
The agent keeps one outbound connection to Akua, so your cluster needs no inbound access from Akua. It applies workloads as a ServiceAccount (akua-apply) that holds only the access you chose:
- All namespaces:
cluster-admin. - Selected namespaces: the
adminrole in each namespace you listed.
needs-customer-upgrade condition with the missing permissions and an Upgrade command to run. If the agent stops connecting, the Cluster shows agent-offline; workloads keep running, and nothing new rolls out until it reconnects. Run Create command again to repair the agent.
What stays with you
Akua doesn’t run the control plane or nodes of an attached cluster. You handle Kubernetes upgrades, scaling, and the storage your cluster provides. Add servers applies to hosted Clusters only.From the CLI or API
access object in the request body. For example, attached-cluster.json holds {"body": {"kind": "attached", "name": "shop", "access": {"kind": "cluster"}}}. To limit the agent to namespaces, use {"kind": "namespaces", "namespaces": ["a", "b"]} as the access value.
Clusters API reference
Endpoints, parameters, and response shapes.
Authentication
Mint API tokens for programmatic access.
Related topics
Create a hosted cluster
Let Akua run the control plane.
Clusters overview
Hosted and attached Clusters, and their states.
Storage
How Installs get persistent volumes.
Installs
Run a Package on the Cluster.