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

CKA study material · question 866 of 1000

A kubectl debug session is disconnected by a dropped network link. How is it resumed?

  1. Rerun kubectl debug with the same arguments
  2. Run kubectl attach against the debug container
  3. Run kubectl exec into the debug container
  4. It cannot be resumed; a new debug container is required
Show the answer

Answer: B. Run kubectl attach against the debug container

The -i flag attaches to the new container, and a session that drops is picked back up with kubectl attach rather than by creating another debug container.

Source: Debug Running Pods (Kubernetes) — Debugging using a copy of the Pod › Copying a Pod while adding a new container

Challenge yourself on this topic → Study as cards