Study. uk . com
  1. Home
  2. All questions
  3. 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.

  1. -l app=web
  2. --previous
  3. --all-containers
  4. --limit-bytes=500
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

Challenge yourself on this topic → Study as cards