- Home
- All questions
- Question 916
CKA study material · question 916 of 1000
You need logs from every container of every Pod labelled app=web. Which two flags does that call for? Choose two.
Show the answer
Answer: A. -l app=web
C. --all-containers
A label selector picks the Pods and --all-containers covers each container in them; --max-log-requests caps how many Pods are streamed concurrently.
Source: kubectl logs (Kubernetes) — Examples