- Home
- All questions
- Question 915
CKA study material · question 915 of 1000
Which of these is a valid target for kubectl logs?
Show the answer
Answer: D. deployment/nginx
kubectl logs accepts a Pod or a controller such as a Deployment, from which it selects Pods. Nodes, Services and namespaces are not log sources.
Source: kubectl logs (Kubernetes) — Synopsis