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

CKA study material · question 920 of 1000

Which command follows new events for one Pod as they arrive?

  1. kubectl get events --field-selector involvedObject.kind=Pod
  2. kubectl describe pod web-pod --watch
  3. kubectl logs -f pod/web-pod
  4. kubectl events --for pod/web-pod --watch
Show the answer

Answer: D. kubectl events --for pod/web-pod --watch

--for narrows the event stream to a single object and --watch keeps printing new events as they arrive; kubectl describe is a snapshot.

Source: kubectl events (Kubernetes) — Examples

Challenge yourself on this topic → Study as cards