- Home
- All questions
- Question 866
CKA study material · question 866 of 1000
A kubectl debug session is disconnected by a dropped network link. How is it resumed?
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