Interview Prep/Kubernetes/EKS, Upgrades & etcd Backup

How do you restart all Pods of a Deployment safely?

IntermediateConceptEKS, Upgrades & etcd Backup
Answer

Use kubectl rollout restart, which stamps a new annotation on the Pod template so a normal rolling update happens with maxSurge, probes and PDBs honoured. Deleting Pods by hand ignores rollout strategy and can drop capacity.

kubectl rollout restart deploy/web
kubectl rollout status deploy/web
All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on EKS, Upgrades & etcd Backup