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

CKA study material · question 487 of 1000

How are logs pulled through a Deployment rather than a named Pod?

  1. kubectl logs --all-pods
  2. kubectl logs deploy/<name>
  3. kubectl logs --selector=<label>
  4. kubectl describe deploy/<name>
Show the answer

Answer: B. kubectl logs deploy/<name>

kubectl logs deploy/<name> dumps Pod logs through the Deployment without needing a Pod name.

Source: kubectl Quick Reference (Kubernetes) — Interacting with Deployments and Services

Challenge yourself on this topic → Study as cards