Menu

How to Back Up and Restore etcd in a kubeadm Kubernetes Cluster
📰

How to Back Up and Restore etcd in a kubeadm Kubernetes Cluster

DEV Community: kubernetes·William Kwabena Akoto·about 18 hours ago
#cRZGi3f6
#devtokubernetes#devto#dev#etcd#control
Long article (3193 words) — no AI summary yet.
Reading 0:00
15s threshold

Every object in a Kubernetes cluster, from Deployments and Services to Secrets and ConfigMaps, is stored in one place: etcd . If that data is lost or corrupted, the cluster loses its memory. Your applications may keep running for a while, but you can no longer manage them.

Managed services like AKS, EKS and GKE protect this for you. On a self-managed cluster built with kubeadm, backing up etcd is your responsibility. This guide shows how to take a backup, how to restore it, and how to prove the restore works by running a controlled disaster drill. Every step says exactly which machine to run the command on .

A backup you have never restored is only a hope. The drill in this guide turns it into something you can trust.

A real incident: when about 200 control planes disappeared

This isn't a theoretical risk. On January 23, 2024, DigitalOcean's managed Kubernetes service (DOKS) had a serious outage in its Frankfurt region.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.