= The command kubectl events deployment api is not a valid kubectl command. The correct command to display the events for a deployment object is kubectl get events --field-selector involvedObject.name=api12. This command uses a field selector to filter the events by the name of the involved object, which is the deployment called api. Alternatively, you can use kubectl describe deployment api to see the details and the events for the deployment3. References:
1: kubectl Cheat Sheet | Kubernetes
2: kubernetes - kubectl get events only for a pod - Stack Overflow
3: Kubectl: Get Events & Sort By Time - ShellHacks
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit