- Home
- All questions
- Question 368
CKA study material · question 368 of 1000
When may the -c flag be omitted from kubectl logs or kubectl exec?
Show the answer
Answer: B. When the Pod holds only one container
The -c flag picks a container in a multi-container Pod and can be omitted for a single-container Pod.
Source: Debug Running Pods (Kubernetes) — Debugging with container exec