Interview Prep/Kubernetes/Extending Kubernetes: Helm, CRDs, Operators & kubectl

How do `kubectl debug` and `kubectl diff` help day to day?

IntermediateConceptExtending Kubernetes: Helm, CRDs, Operators & kubectl
Answer

kubectl debug attaches an ephemeral container, copies a Pod with a different image or command, or starts a privileged Pod on a node (kubectl debug node/n1 -it --image=busybox). kubectl diff -f shows what an apply would change against live state, ideal in CI before a deploy.

All Kubernetes questions

More on Extending Kubernetes: Helm, CRDs, Operators & kubectl