How do you get a shell in a pod, and debug one that has no shell?

IntermediateConceptKubernetes
Answer
kubectl exec -it api-xyz -- sh
kubectl debug -it api-xyz --image=busybox:1.36 --target=api   # ephemeral container
All Real-World Interview questions Roadmap: Interview readiness

More on Kubernetes