Recovering a Kubernetes cluster after losing control plane nodes

When etcd quorum or every control plane node is gone, the cluster needs a planned restore, not improvisation. This page sets out the recovery runbook, the decisions behind it and what to verify before reopening traffic.

On this page

Recovering a Kubernetes control plane after quorum loss: when this runbook applies

This runbook applies when etcd has lost quorum or every control plane node is gone, so the kube-apiserver can no longer read or write cluster state. Recovery means restoring control plane state safely, not simply bringing API endpoints back online. Workloads that were already running on worker nodes may keep serving traffic while the API is down, because kubelets continue to run existing pods, but you cannot create, scale, update or heal anything until the control plane is trustworthy again. Start by confirming which failure you have: a minority of etcd members lost (quorum still exists and the fix is member replacement), or a majority or all members lost (snapshot restore is required).

The topology you run determines the work. In the kubeadm high availability model, a stacked control plane runs etcd on the same nodes as the control plane components, so losing two of three control plane nodes also removes two of three etcd members. An external etcd cluster separates the two, which means the etcd cluster may survive a control plane outage and the control plane nodes can be rebuilt against it. The kubeadm guide calls for at least three control plane nodes, and the etcd documentation recommends an odd member count with five members in production. Those numbers set your failure tolerance: three members tolerate one loss, five tolerate two. Confirm your member count, placement and etcd data directories before any step, because they decide whether you replace members in place or rebuild the whole cluster from a snapshot.

Before you touch anything, confirm that you hold a recent, verified etcd snapshot taken with etcdctl snapshot save, that you know the certificate authority material for the cluster, and that the load balancer in front of kube-apiserver on port 6443 is still defined in your runbook. Restores use etcdutl, and a restore writes a new data directory rather than repairing the old one, so keep the damaged data directories intact for forensics. The rest of this page covers the restore sequence and what to verify before reopening traffic. Each of those steps assumes you have already decided which recovery path applies, which is why this section comes first.

How the recovery phases fit together

The path starts with assessing quorum and which control plane nodes survived, then picks a snapshot and stops the API servers on the surviving nodes. The etcd snapshot is restored into a new data directory, members are rebuilt, and certificates are renewed or verified before the control plane restarts. Verification gates run before traffic returns through the load balancer on port 6443. Any failed gate sends the operator back to the snapshot or member step rather than forward.

Recovery phases from quorum assessment to reopening traffic, with a loop back to snapshot selection on failure.

Which recovery path fits your failure

This table compares the three ways to recover a control plane: restoring quorum from a surviving etcd member, restoring one member from a snapshot, and rebuilding the control plane from scratch. Read each row against your topology, because stacked and external etcd change which path is available and what it costs. The main takeaway is that the path depends on whether etcd still has quorum and whether a verified snapshot exists.

PathWhen it fitsWhat it preservesDowntime and risk
Replace failed members on surviving quorumetcd still has a majority of members healthy and the API is reachable through at least one endpointAll cluster state in etcd, including Secrets, RBAC and workload objectsLowest data risk; downtime is mainly the window while new members sync and the API is degraded
Single-member restore from an etcd snapshotQuorum is lost but a recent snapshot taken with etcdctl snapshot save exists and was verifiedState up to the snapshot time; changes made after it are lostHigher risk: the cluster must be rebuilt from one member, and stale state can conflict with running nodes
Full control plane rebuild without a usable snapshotNo snapshot, or the snapshot is corrupt or too old to trustOnly what survives outside the control plane: workload manifests in Git, volumes and external secret storesLongest outage and highest risk; workloads and identities may need to be recreated and verified one by one
Stacked etcd topologyetcd runs on the control plane nodes, so losing two of three nodes usually removes both API and quorumControl plane and etcd share fate; snapshots must be taken from a surviving memberA single node loss is survivable, but losing a majority removes the API, so restoration usually starts from snapshots or a rebuild
External etcd topologyetcd runs as its own cluster, so control plane nodes can fail while etcd keeps quorumetcd data is isolated from API server failures and can be recovered independentlyMore moving parts to recover, but control plane nodes are replaceable without touching etcd data
Certificates and endpointsAny path that restores etcd data or moves members to new addressesExisting cluster CA and etcd peer and client certificates, if kept intactMismatched certificates or old endpoints block API startup; confirm the CA and SANs before restarting components
Verification before reopening trafficEvery path, before the load balancer on port 6443 sends traffic to the APIConfirms nodes, RBAC, Secrets and workloads match the expected stateSkipping checks risks serving stale or partial state to clients and controllers

Recovery runbook sequence with checks at each step

This sequence takes a cluster from lost etcd quorum or lost control plane nodes back to a healthy, writable control plane, with a verified snapshot and a check before each stage can proceed. Each step names the evidence that lets the next one start.

  1. Freeze changes and record the failure state

    The incident lead stops all deployments, GitOps syncs, autoscalers and scheduled jobs that write to the API, then records which control plane and etcd members are reachable, their last known versions and the time of the failure. Capture the output of member list and endpoint health from every surviving etcd member, and save the kube-apiserver and etcd logs before any restart. The step is done when the change freeze is confirmed in the incident log and the failure state is written down. Stop if any pipeline or controller still writes to the API, because it will overwrite the state you need to restore.

  2. Select the newest usable etcd snapshot

    Locate snapshot files created by etcdctl snapshot save, usually from your backup location, and sort them by the time they were taken. Confirm each candidate's source cluster, etcd version and the time window it covers against your change log, so you know which writes it contains and which it does not. Record the chosen file's path and checksum. The step is done when one snapshot is named in the runbook with a recorded checksum. Stop if no snapshot predates the damage, or if the only copies sit on the failed nodes, and escalate to your backup owner before continuing.

  3. Verify the snapshot with etcdutl

    Run etcdutl snapshot status against the chosen file and compare the reported hash, revision and total key count with the values logged when the backup was taken or with a sibling snapshot from the same window. Copy the file to a separate restore host so the original stays untouched. The step is done when status returns cleanly and the revision matches the expected range. Stop if the hash is inconsistent or the file is truncated, and fall back to the next older snapshot instead of attempting a partial restore.

  4. Stop API servers and controllers on every node

    On each control plane node, stop kube-apiserver, kube-controller-manager and kube-scheduler, and stop the etcd member processes on nodes where you are rebuilding them. Confirm that no process on any node still listens on port 6443 and that the load balancer in front of the API has no healthy backends. Keep the stopped state until the restored cluster is verified. The step is done when a port check on every control plane node shows no listener and the load balancer reports no healthy targets. Stop if any kubelet or operator is still reconciling workloads against the old endpoint.

  5. Restore the snapshot into a fresh data directory

    Run etcdutl snapshot restore on each member with that member's name, initial cluster string, initial advertise peer URLs and a new data directory, and keep the old data directory moved aside rather than deleted. Use the same initial cluster token for every member so they form one new cluster. The step is done when each member's restore command exits successfully and each new data directory exists. Stop if the member names, peer URLs or initial cluster lists differ between nodes, because the members will refuse to join or form separate clusters.

  6. Start etcd members and confirm quorum

    Start the etcd members one at a time on their restored data directories, then run etcdctl member list and etcdctl endpoint health with the cluster certificates. Confirm that the number of healthy members meets the quorum for your member count, that all members show the same leader and that the revision is consistent across members. The step is done when endpoint health reports healthy for each expected member and the leader is stable across repeated checks. Stop if a member reports a different cluster ID or revision, and do not start the API servers on an unhealthy or divergent etcd cluster.

  7. Renew certificates and restart the control plane

    Check the expiry dates of the API server, etcd peer and client, front-proxy and kubelet certificates with your certificate tooling, and renew or reissue any that are expired or were issued for addresses that changed. Then start kube-apiserver on each node, followed by kube-controller-manager and kube-scheduler, and confirm that the load balancer marks each backend healthy on port 6443. The step is done when kubectl get nodes returns from the restored endpoint and the control plane pods report ready. Stop if certificates fail validation, since client trust will break across the cluster.

  8. Verify health before reopening traffic

    Confirm the API responds consistently through the load balancer, that nodes report Ready, that kube-system components are running, and that the Secrets encryption configuration and RBAC bindings match the pre-incident baseline. Check that workloads have not been rescheduled unexpectedly, then lift the change freeze in stages, starting with monitoring and internal tooling before application traffic. The step is done when the agreed checklist is signed off by the platform owner and the incident record names the snapshot used and any data written after it that must be reconciled. Stop and keep traffic closed if nodes are not Ready or any workload is missing from its expected namespace.

Rebuilding etcd members and renewing certificates after restore

Before any restored member joins the cluster, confirm that the certificate authority material in the restored environment matches what the surviving workloads, kubelets and clients already trust. A restored cluster that uses a different CA cannot be fixed by reissuing certificates on a single node, because every kubelet, kubeconfig and API client that holds the old CA bundle will reject the new control plane. Compare the CA certificate fingerprints on each control plane node against your inventory, and confirm that the front-end certificate for kube-apiserver includes the DNS names and IP addresses of the load balancer endpoint you will reopen. If the load balancer address changed during the incident, the subject alternative names must be regenerated before any client reconnects, and the kubeconfig files pointing at the old endpoint must be updated.

Next, decide how etcd membership is rebuilt. A restore from a snapshot creates a new cluster identity, so the old member list must not be reused. Plan whether you will bootstrap a fresh etcd cluster from the restored data directory or add members one at a time with etcdctl member add, and record the peer URLs and names for each member before you start. Each new member must present peer and client certificates that cover its own address, and the etcd CA used for peer traffic must be the one the other members trust. Once the first member is healthy, add the remaining members in the planned order and check quorum with etcdctl endpoint health before joining any kube-apiserver. The kubeadm high availability guide describes the stacked and external etcd topologies, and the steps differ between them, so confirm which topology your cluster uses before you follow any procedure.

Finally, rejoin control plane and worker nodes only after the certificate state is confirmed. For control plane nodes, check whether kubeadm-managed certificates such as the apiserver, kubelet client and front-proxy certificates have expiry dates that fall within your recovery window, and renew them if needed. Confirm that each worker's kubelet certificate chains to the cluster CA, and regenerate join tokens and certificate keys with kubeadm token create and kubeadm init phase upload-certs rather than reusing expired material. Verify every kubeconfig used by operators, controllers and automation against the new endpoint. Record which CA, certificates and endpoints were confirmed, because the post-incident review and any audit evidence will ask for that record.

Security risks introduced during an emergency restore

An emergency restore rolls the cluster back to a point in time, and that rollback can quietly undo security decisions made since the snapshot was taken. The cards below cover the risks that come back with the data: credentials, bindings, encryption, admission settings, webhooks and the snapshot files themselves.

Revoked credentials come back

An older snapshot still contains client certificates, service account tokens and RBAC bindings that were revoked or removed after it was taken. Before reopening traffic, compare the restored RBAC objects and service accounts with the current access register, and rotate or re-revoke anything that should no longer work. Confirm that identity provider group mappings reflect today's staff, not the snapshot date.

Snapshots expose Secrets

Secrets are stored unencrypted in etcd by default, so every snapshot file contains readable Secret values for the whole cluster. Treat each snapshot as a credential bundle: restrict who can read, copy or download it, log access, and plan to rotate the database passwords, API keys and certificates it holds if the file leaves controlled storage.

Secrets good practices

Encryption at rest must be restored

The encryption configuration lives in the API server flags and an encryption configuration file on each control plane node, not inside the snapshot. A rebuilt node without that file will write new Secrets in plain text. Confirm that every restored API server uses the same encryption provider configuration, and that the encryption keys from the original cluster are available to decrypt existing data.

Pod Security and audit settings lost

Namespace labels that enforce Pod Security Admission and the audit policy file are part of the control plane setup, so a rebuilt control plane can start without them. Reapply the Privileged, Baseline or Restricted enforcement labels per namespace, and confirm the audit policy and log destination are active before any workload is redeployed. Check the restored namespaces against the expected labels.

Pod Security Standards

Stale admission webhooks and tokens

Validating and mutating webhook configurations in the snapshot may point to services, certificates or CA bundles that no longer exist, or to policy engines that were removed. Failing webhooks can block all pod creation, while forgotten ones may still admit workloads that current policy would reject. List every webhook configuration after restore, verify its endpoint and CA, and remove or update any that do not match the current platform.

Snapshots kept near the cluster

A snapshot stored on the failed control plane node, or in a bucket with the same access as the cluster, is lost or exposed together with it. Keep copies off-cluster in storage with separate credentials, encryption, versioning and tight read access, and record who may restore from them. Test that a restore can be performed by the responders on call, not only by the engineer who set up the backup.

What to verify before reopening traffic

Platform engineers verify that the control plane is structurally sound before anything else is checked. Start with etcd, because every other component depends on it. Confirm that the member list matches the intended topology, that the cluster is healthy on every member, and that the number of members is odd as the Kubernetes etcd guidance expects. Then confirm the control plane components behave as a set.

  • etcd health and membership: Run endpoint health and member list checks with etcdctl against every member, and confirm no stale or unreachable members remain registered.
  • API server readiness: Hit the /readyz endpoint through the load balancer on port 6443 and directly on each control plane node, and confirm both agree.
  • Controller manager and scheduler leadership: Check that exactly one active leader holds each lease for kube-controller-manager and kube-scheduler.
  • Node Ready states: Confirm every expected node reports Ready and that no node is stuck in NotReady or carries leftover taints from the incident.
  • Cluster DNS: Resolve an in-cluster service name from a test pod and confirm CoreDNS pods are running on the rebuilt nodes.

Record the output of each check in the recovery log so the sign-off can be audited later.

Questions teams ask before recovering a control plane

How long does recovering a Kubernetes control plane take?

No duration can be stated in general, because the time depends on the state of your cluster and how much of it must be rebuilt. The main drivers are how old the newest usable etcd snapshot is, how many control plane and etcd members must be rebuilt, how much certificate and kubeconfig work is needed, and how wide the verification scope is. A cluster with a recent snapshot, documented topology and a clean set of member replacements takes far less effort than one where snapshots are missing or certificates have expired. Ask any partner to base a schedule on a written inventory of your nodes, snapshot history and certificate state, and to state which assumptions the schedule depends on.

What cost components does a partner bill for in a recovery engagement?

A recovery engagement usually bills for assessment of the failure and available snapshots, the restore and member rebuild work, certificate and access remediation, verification before traffic returns, and the written runbook that comes out of the work. Some of this is one-time, such as the incident response itself. Other items recur when the work is tied to a retainer, for example drills, snapshot monitoring or post-incident hardening. Costs rise with the number of clusters, the age of the snapshot, the amount of undocumented configuration and the size of the verification scope. Ask for a fixed-scope quote that lists each phase, the deliverables, and which items sit outside the agreed scope. DeployOpen does not publish prices, and a quote follows from the written scope.

Can our own team recover a control plane without a partner?

Yes, a capable internal team can run this procedure, but it needs practice before an incident. The work requires working knowledge of etcd cluster membership, etcdutl for restores and etcdctl for snapshots, kubeadm control plane layout, TLS certificates and kubeconfig files, the API server load balancer on port 6443, and how the kubelets reconnect after the control plane returns. Engineers should also know how to confirm that authentication and secret encryption settings are still in place after a rebuild. The gap usually appears in unrehearsed steps and undocumented topology. Teams that have never performed a restore in a test environment should either rehearse with a known-good snapshot first or agree support in advance.

What do we need to provide before a recovery starts?

The most useful inputs are the etcd snapshots and their timestamps, a documented control plane topology, and access that lets the responders reach every control plane node, the load balancer and the registry or image source. You should also provide change windows approved in advance, the Kubernetes version and kubeadm configuration, certificate locations, and the list of workloads that must return first. Give responders a way to reach the people who approve changes during the incident. Missing answers on any of these tend to stretch the schedule more than the technical work itself. If your environment has no internet access, confirm where container images and packages will come from before the incident, since kubeadm can use a private registry through --image-repository.

What should we verify before reopening traffic to a recovered cluster?

Verify in layers before any user or service traffic is routed back. Confirm that every etcd member is healthy and in the expected membership, that the API server answers through the load balancer, and that the control plane components and nodes report ready. Check that authentication still works for administrators and service accounts, that RBAC and admission settings match the approved baseline, and that Secrets remain encrypted at rest with the expected key configuration. Confirm that Pod Security Admission labels are still on the namespaces, and that workloads have reconciled without unexpected restarts or duplicate controllers. Record the results so the verification can be repeated and audited later.

How do we make sure we never need a control plane recovery?

You cannot remove every failure, but you can reduce how often recovery is needed and how much data it would lose. Schedule etcd snapshots with etcdctl snapshot save, store them away from the cluster, and alert when a snapshot is missed or older than your recovery point target. Keep the topology, certificates and encryption configuration in version-controlled documentation. Run restore drills in a non-production environment on a regular cadence so the runbook reflects the current cluster version and tooling. Plan upgrades so the control plane stays within the supported version skew policy, and keep an odd number of etcd members, with five recommended for production. Revisit the drill results after each change to the cluster.

Does a recovery plan cover workload data as well as the control plane?

No, an etcd snapshot restores cluster state such as API objects, but it does not back up the data inside persistent volumes. Application data needs its own backup and restore path, which is usually handled by a separate tool and tested separately. Before an incident, confirm which namespaces and volumes are covered, how long backups are kept, and who can perform a restore. Include the data restore in your drill so the team knows the full time to a working service, not only the time to a healthy API server.

Limits to confirm in your environment before you rely on this runbook

This runbook assumes a specific Kubernetes version, a specific snapshot toolchain, and a load balancer you can change during an incident. Each card names one assumption to verify in your own environment before an outage forces the question.

Versions against the skew and release policies

Confirm the Kubernetes minor version and the etcd version running on your control plane, and check both against the supported release list. Restoring a snapshot into a binary that does not match the cluster's version history can fail in ways you will not see until the API server starts. Check the version skew rules for kube-apiserver, controller-manager, scheduler and kubelets before you choose the restore binaries. Record the exact versions in the runbook itself.

Oldest supported minor release
1.35
Version skew policy

Snapshot tooling used by your distribution

Confirm which tool your distribution uses to take and restore etcd snapshots, and whether it wraps etcdctl snapshot save and etcdutl or uses its own commands. Some distributions manage etcd on their own schedule and store snapshots in a location you must find before an incident. Write down the exact restore command your distribution expects, and test it on a non-production cluster before you need it.

Operating etcd clusters

Load balancer and virtual IP reconfiguration

Confirm that your team can change the load balancer backend list or move the virtual IP during recovery, and that you have the credentials and change path to do it at 2 a.m. The API endpoint on port 6443 must point only at the restored control plane members. If your load balancer or VIP lives on hardware or a network team's queue, the recovery time depends on that process, so agree on an emergency change path in advance.

kubeadm HA guide

Snapshot retention and off-site copy

Confirm how many etcd snapshots are kept, how often they are taken, and whether at least one copy sits outside the failure domain of the control plane. A snapshot stored on a control plane node is lost with that node. Ask who can read and delete snapshot files, because etcd holds Secrets that are unencrypted at rest unless you configured encryption. Confirm that the retention window covers the point you would need to restore to.

Workload backups kept separate from etcd

Confirm that application namespaces, their resources and their persistent volumes are backed up by a separate tool such as Velero, because an etcd snapshot restores cluster state, not the data in your volumes. An etcd restore can bring back Deployments whose PersistentVolumes no longer exist. Check that Velero backups are scheduled, that their storage target is reachable during an incident, and that a restore has been tested for at least one namespace.

Air-gapped image sources for recovery

Confirm where control plane images come from when the cluster has no internet access. Rebuilt control plane members need the same image versions, so the image set must be mirrored to a private registry before the outage. Check that kubeadm can reach that registry from every control plane node and that the image tags match the restored version. A recovery that waits on an external pull can stall the whole runbook.

How to rehearse the runbook so the first real recovery is not the first test

A recovery drill on a non-production cluster is the only way to learn whether the control plane runbook works before you need it. Losing etcd quorum is rare, stressful and time-bound, and the team that performs the restore will be doing it under pressure with incomplete information. A drill separates the questions that can be answered calmly now from those that would otherwise be answered during an incident. Schedule the drill on a cluster built the same way as production, with the same kubeadm topology, etcd version, certificate layout and private registry path, so that its results carry over.

A drill should prove three things. First, snapshot validity: take an etcdctl snapshot save on a healthy member, then confirm the file restores with etcdutl into a scratch data directory and that the restored members start. Second, procedure timing: record how long each step takes, including stopping kube-apiserver on every control plane node, rebuilding members, reissuing or verifying certificates and confirming the load balancer on port 6443 only routes to healthy endpoints. Third, access to images and keys: confirm that the nodes can pull control plane images from the internal registry with no internet access, and that the people on call can reach the etcd encryption key, the CA material and the administrator kubeconfig without relying on the cluster that is down. Many teams find the last item is the one that fails.

Record each drill as a dated run log with the cluster version, the snapshot name and age, every command executed, step durations, deviations from the written runbook and open actions. Keep the log with the runbook so the next drill starts from the last one. Use the results to test your other decisions. If restores take longer than your recovery objective, revisit the number of etcd members and the disk and network sizing covered in the etcd sizing topic. If a drill fails because a snapshot did not capture a volume or namespace you expected, review the scope of Velero backups alongside etcd snapshots. If the procedure depends on a single zone or load balancer host staying up, the multi-zone and load balancing decisions in this hub need revisiting. Confirm the exact drill cadence and any staffing assumptions with your own operations team.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.