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

# What if the API Server Goes Down

> Explains impact of Kubernetes API server outages while running Pods keep serving traffic but control plane operations, scheduling, and management stop, recommending high availability and etcd backups.

Short answer: No — your running workloads do not immediately stop if the Kubernetes API server is unavailable. Containers that are already running keep serving traffic. What you lose is the ability to manage the cluster: creating or changing objects, scheduling new pods, scaling, and other control-plane operations.

To reason about this, split a cluster into two logical halves: the data plane and the control plane.

* Data plane
  * Where your applications run: nodes, pods, and containers.
  * Pod-to-pod traffic flows across the pod network machine-to-machine and does not traverse the API server. Running containers keep communicating even when the API server is down.
* Control plane
  * Contains the API server, scheduler, controller manager, and etcd.
  * These components coordinate desired state and cluster configuration.

A key design point: control-plane components do not call each other directly. Each component reads from and/or writes to the API server only. The API server is the central point of communication and is the only component allowed to read or write etcd.

Summary table

| Area | Responsibility | Effect if API server is down |
| - | - | - |
| Data plane | Nodes, kubelets, running Pods | Pods continue running and serving traffic |
| Control plane | API server, scheduler, controller-manager, etcd | Cannot schedule or manage objects; cluster control operations blocked |
| Client tools | `kubectl`, controllers | `kubectl` cannot read/write cluster state; controllers cannot reconcile new changes |

How components coordinate (two examples)

1. Scheduler

* When a new Pod is created, the scheduler watches the API server for Pods without an assigned node.
* The scheduler selects an appropriate node and writes that node assignment back to the API server.
* The kubelet on that node watches the API server, sees the Pod assigned to it, and starts the container.
* The scheduler never talks directly to kubelets — all coordination happens via the API server.

2. Controller manager (replica controller / deployment controller)

* If you request three replicas and one Pod dies (leaving two), the controller reads the current state from the API server and notices the shortfall.
* The controller writes a new Pod object to the API server.
* The scheduler sees the new Pod (it has no node), picks a node, and writes the assignment to the API server.
* The kubelet on the chosen node picks up the Pod and starts the container, restoring the desired replica count.

In both flows the controller, scheduler, and kubelet cooperate exclusively through the API server — none of them communicates directly with each other. Everyone works through the API server, never by talking to each other.

![A stylized diagram of Kubernetes architecture showing the control plane (scheduler, controller-manager, API server, etcd) and the data plane (kubelet). Arrows indicate components communicating through the API server with the caption "Everyone works through the API server."](https://mintcdn.com/kodekloud-c4ac6d9a/IK4ISE2GFis3psR1/images/DevOps-Interview-Questions-and-Answers-Scenario-Based-Prep/Kubernetes/What-if-the-API-Server-Goes-Down/kubernetes-control-plane-api-server-diagram.jpg?fit=max\&auto=format\&n=IK4ISE2GFis3psR1\&q=85\&s=48348925f6e3485c173f2fceb9f68328)

Operational impact when the API server is unavailable

* What continues:
  * Existing Pods and Services continue to run and serve traffic.
  * Node-level processes (kubelet, container runtime) continue managing the containers they already know about.
* What stops:
  * Create, update, or delete Kubernetes objects (via `kubectl` or controllers).
  * Scheduling new Pods or reassigning Pods to different nodes.
  * Scaling Deployments or changing configurations.
  * Reading fresh cluster state via `kubectl` (it queries the API server).

Mitigation and best practices

* Run the API server highly available: multiple API server replicas behind a load balancer.
* Run etcd as a clustered datastore with an odd number of members distributed across failure domains.
* Regularly backup etcd and test restores.
* Monitor API server health and etcd quorum closely; use alerting for control-plane failures.

Note: In production, API servers are typically run highly available (multiple replicas) and etcd is run as a clustered data store to avoid a single point of failure. Ensuring API server and etcd availability is essential for cluster manageability, even though running workloads can continue during an outage.

Further reading and references

* Kubernetes control plane overview: [https://kubernetes.io/docs/concepts/overview/components/](https://kubernetes.io/docs/concepts/overview/components/)
* Running etcd in production: [https://etcd.io/docs/](https://etcd.io/docs/)

> [card] [Watch Video](https://learn.kodekloud.com/user/courses/devops-interview-prep/module/60905e58-3a8e-4423-9743-081b4959f0a0/lesson/fa775c31-fb93-4bd1-9afc-977f92e2d7fb)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.