0
0
Kubernetesdevops~5 mins

etcd backup and recovery in Kubernetes - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is etcd in Kubernetes?

etcd is a key-value store that Kubernetes uses to save all its cluster data. It acts like the brain of the cluster, keeping the current state and configuration.

Click to reveal answer
beginner
Why is backing up etcd important?

Backing up etcd is important because it stores all the cluster data. If it gets lost or corrupted, the whole Kubernetes cluster can fail. Backups help restore the cluster to a working state.

Click to reveal answer
intermediate
Which command is used to create a snapshot backup of etcd?

The command etcdctl snapshot save <filename> creates a snapshot backup of the etcd data.

Click to reveal answer
intermediate
How do you restore etcd from a snapshot?

You use etcdctl snapshot restore <filename> to restore etcd data from a snapshot file. Then you restart the etcd server with the restored data.

Click to reveal answer
beginner
What is a common real-life analogy for etcd backup and recovery?

Think of etcd backup like saving a copy of your phone contacts. If your phone breaks, you can restore contacts from the saved copy. Without backup, you lose all contacts.

Click to reveal answer
What does etcd store in a Kubernetes cluster?
AContainer images
BPod logs
CCluster state and configuration data
DNetwork traffic
Which command saves an etcd snapshot?
Akubectl snapshot save
Betcdctl snapshot save &lt;file&gt;
Cetcdctl backup create
Dkubectl get snapshot
What should you do after restoring an etcd snapshot?
ARestart the etcd server with restored data
BDelete the Kubernetes cluster
CRun kubectl apply on all pods
DNothing, it restores automatically
What happens if etcd data is lost without backup?
AThe Kubernetes cluster may fail or lose state
BPods continue running normally
COnly logs are lost
DNothing important happens
Which tool is used to manage etcd snapshots?
Ahelm
Bkubectl
Cdocker
Detcdctl
Explain the steps to back up and restore etcd data in Kubernetes.
Think about saving a snapshot and then using it to bring back data.
You got /4 concepts.
    Why is etcd backup critical for Kubernetes cluster health?
    Consider what happens if the cluster brain is lost.
    You got /4 concepts.