What is the difference between a Deployment, StatefulSet and DaemonSet?
BeginnerScenarioUpgrades, etcd, disaster recovery and incidents
Answer
Situation read → Fundamentals.
What I'd do →
- Deployment: stateless, interchangeable replicas
- StatefulSet: stable identity and storage, ordered operations
- DaemonSet: one pod per node
- Pick by state and placement needs
- Verify with
kubectl get deploy,sts,ds
Why → Each controller encodes a different guarantee.
Interview tip → Give an example for each.
More on Upgrades, etcd, disaster recovery and incidents
How do you back up etcd on a self-managed cluster?BeginnerHow do you restore a cluster from an etcd snapshot?Advancedetcd database space exceeded: `mvcc: database space exceeded`. What now?AdvancedWalk through a kubeadm minor version upgrade.AdvancedHow do you find deprecated or removed APIs before an upgrade?IntermediateA cluster upgrade broke an operator because its CRD API version was removed. How do you recover?Advanced