> ## Documentation Index
> Fetch the complete documentation index at: https://docs.akua.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Clusters

> Understand hosted and attached clusters in Akua

![A cluster split by ownership: Akua's managed control plane schedules workloads into slots on your worker machines](https://docs.akua.dev/images/heros/clusters-light.svg)

A Cluster is the Kubernetes cluster an Install runs on. Akua supports two kinds: a hosted Cluster, where Akua runs the control plane, and an attached Cluster, which is a Kubernetes cluster you already run.

## Choose a cluster type

|  | Hosted | Attached |
| - | - | - |
| **Control plane** | Run by Akua in a [Region](https://docs.akua.dev/clusters/regions.md) | Yours |
| **Servers** | You [add servers](https://docs.akua.dev/clusters/add-workers.md): your own, or an Akua server | Yours |
| **How it connects** | Automatic | You install the Akua cluster agent with a Helm command |
| **Akua's access** | The whole Cluster | The whole cluster or only the namespaces you list |

### Hosted clusters

A hosted Cluster is Kubernetes as a Service (KaaS). Akua runs the control plane, and you join servers to it. A server is either a Linux machine you run or an [Akua server](https://docs.akua.dev/compute/overview.md). On each hosted Cluster, Akua places a baseline: a tunnel connector and a private ingress gateway for [public URLs](https://docs.akua.dev/networking.md), local-path [storage](https://docs.akua.dev/storage.md), and a metrics server.

[Create a hosted cluster →](https://docs.akua.dev/clusters/create.md)

### Attached clusters

An attached Cluster is a Kubernetes cluster you run, wherever it runs. You install the Akua cluster agent with a one-time Helm command and choose what it can manage. Akua installs Packages onto the cluster, and you keep operating the control plane, the nodes, and Kubernetes upgrades.

[Attach a cluster →](https://docs.akua.dev/clusters/import.md)

## Cluster state

The dashboard and the API report one `state` for each Cluster:

| State | Meaning |
| - | - |
| `provisioning` | The hosted control plane is starting. |
| `awaiting_node` | Join a server to the hosted Cluster. |
| `awaiting_agent` | Install the cluster agent, or wait for it to connect. |
| `configuring` | Akua is placing the baseline. |
| `ready` | The Cluster accepts Installs. |
| `degraded` | Something needs attention; read the Cluster's `conditions`. |
| `disconnected` | The agent stopped calling Akua. Workloads keep running. |
| `failed` | Setup failed; the `conditions` say why. |
| `deleting`, `deleted` | The Cluster is being removed or is gone. |

A Cluster also reports the `capabilities` it offers: `https_ingress`, `persistent_volumes`, and `resource_metrics`.

## Installs and deletion

An [Install](https://docs.akua.dev/installs.md) runs a Package on a Cluster. A Cluster that still has Installs can't be deleted (the request fails with `409`), so delete the Installs first. Deleting a hosted Cluster also deletes its Akua servers; servers you joined yourself keep running.

## Related topics

> [card] [Create a hosted cluster](https://docs.akua.dev/clusters/create.md)
>
> Pick a Region and let Akua run the control plane.

> [card] [Add servers](https://docs.akua.dev/clusters/add-workers.md)
>
> Join a server to a hosted Cluster.

> [card] [Attach a cluster](https://docs.akua.dev/clusters/import.md)
>
> Connect a Kubernetes cluster you run.

> [card] [Workspaces](https://docs.akua.dev/workspaces.md)
>
> Organize your clusters and products.
