What is the difference between kubectl exec and kubectl debug in Kubernetes?

Kubernetes Hard
Select the correct answer: Single Choice

Key points

  • kubectl exec requires a running container to execute commands
  • kubectl debug enables debugging of containers without installed debug tools
  • Ephemeral containers are created for debugging with kubectl debug
  • kubectl debug can handle crash-looping pods

Ready to go further?