You are troubleshooting a Kubernetes deployment called api, and want to see the events table for this object. Does this command display it?
Solution: kubectl describe deployment api
Answer(s): A
Explanation:
= The command kubectl describe deployment api displays the events table for the deployment object called api, along with other information such as labels, replicas, strategy, conditions, and pod template. The events table shows the history of actions that have affected the deployment, such as scaling, updating, or creating pods. This can help troubleshoot any issues with the deployment. To see only the events table, you can use the flag --show-events=true with the command.
Reference:
Deployments | Kubernetes kubectl - How to describe kubernetes resource - Stack Overflow
Kubectl: Get Deployments - Kubernetes - ShellHacks kubernetes - Kubectl get deployment yaml file - Stack Overflow
Reveal Solution Next Question