Study. uk . com
  1. Home
  2. All questions
  3. Question 864

CKA study material · question 864 of 1000

An application crashes immediately at startup, so there is never a running container to exec into. Which approach does the documentation recommend?

  1. Use kubectl debug to create a copy of the Pod with changed settings
  2. Scale the Deployment to zero and back up
  3. Set the Pod's restartPolicy to Never and re-apply
  4. Run kubectl attach with --pod-running-timeout
Show the answer

Answer: A. Use kubectl debug to create a copy of the Pod with changed settings

Copying the Pod with kubectl debug lets its command or image be changed for investigation without disturbing the original workload.

Source: Debug Running Pods (Kubernetes) — Debugging using a copy of the Pod

Challenge yourself on this topic → Study as cards