Docker Certified Associate (DCA) — Question 51
You are troubleshooting a Kubernetes deployment called api, and want to see the events table for this object.
Does this command display it?
kubectl get deployment api
Answer options
- A. Yes
- B. No
Correct answer: B
Explanation
The command 'kubectl get deployment api' retrieves information about the deployment, but it does not display the events table. To view events related to the deployment, you would need to use 'kubectl describe deployment api', which provides more detailed information, including events.