# Availability levels

Moving a Kubernetes stack from a single-node laptop cluster to a multi-zone cloud cluster usually means editing every Deployment and StatefulSet to raise replica counts, add pod anti-affinity rules, and create disruption budgets. In Kix, you set the failure scope your cluster must survive in one place, and Kix works with each package to configure replicas, placement constraints, and disruption budgets.

<Video
  title="Availability levels"
  duration="3:41"
  src="https://media.kix.run/videos/explanation-availability-levels/v3/explanation-availability-levels.mp4"
  poster="https://media.kix.run/videos/explanation-availability-levels/v3/poster.webp"
  captions="https://media.kix.run/videos/explanation-availability-levels/v3/captions.en.vtt"
/>

## Declaring the failure your cluster must survive

Kix defines four availability levels based on the outage your services must survive without downtime:

- **none:** Used on single-node laptop clusters or preview environments; pod restarts or rolling updates may cause brief downtime.
- **pod:** Losing one pod or rolling out a new image keeps services online.
- **node:** Losing an entire worker node keeps services running on remaining nodes.
- **zone:** Losing an entire cloud availability zone leaves surviving zones serving traffic.

Your cluster's hardware capabilities set a default level matching what the nodes support. You can set one target for the whole cluster and override individual package instances when a workload needs a higher or lower level.

## Translating one target across different architectures

Different programs need different replica counts to survive the same failure. A stateless HTTP API needs two replicas to survive a node or zone outage, provided those two pods run on separate nodes or zones. A Raft or Paxos quorum store needs at least three members so one member can fail without losing quorum. A controller without leader election can safely run only one active replica.

Kix splits that decision between the package and the cluster. Each package author maps the four availability levels to the right replica or quorum counts for that software, while you set the cluster's availability level without configuring each package's scaling options separately.

Whenever a Deployment or StatefulSet resolves to more than one replica at an availability level above **none**, Kix adds the matching Kubernetes scheduling and eviction rules. It spreads pods evenly across worker nodes and availability zones, requires strict separation on the failure domain your level demands while keeping best-effort spread on wider domains, and creates a PodDisruptionBudget so node drains and cluster upgrades cannot evict too many pods at once.

## Checking against hardware capabilities and ceilings

Running three replicas on a single-node cluster gives no node resilience: if that machine reboots, all three pods stop together. Likewise, requiring zone spread on a cluster with only one availability zone can leave pods stuck pending in the scheduler.

During local checks, Kix compares the requested availability level against the hardware capabilities declared by your cluster flavor and settings. Requesting **node** or **zone** availability on a confirmed single-node cluster, or requesting **zone** availability when fewer than two zones are declared, fails the build with a clear error. When hardware capabilities are left unset so Kix cannot verify node or zone counts at build time, Kix emits a warning so the assumption stays visible in review.

Kix handles scaling limits the same way. When a package (or a single-leader controller inside a multi-component package) declares a maximum availability level, Kix caps that workload at its supported ceiling and warns when the cluster requested a higher level. When a package defines custom pod spread constraints on a workload, Kix skips its generated spread rules and default disruption budget, warning only if a multi-replica workload has no PodDisruptionBudget.

Next, read [Network policy](/docs/concepts/network-policy/) to see how Kix derives default-deny namespace isolation and service-to-service rules from the dependency graph. For cluster and package availability options, see [Set the cluster availability level](/docs/how-to/platform-capabilities/set-the-cluster-availability-level/) and [Cluster configuration](/docs/reference/cluster-configuration/).