DCA · Question #119
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
The correct answer is A. Yes. The kubectl describe command provides a detailed view of a Kubernetes object, including a dedicated section at the bottom listing related events.
Question
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
Options
- AYes
- BNo
How the community answered
(22 responses)- A91% (20)
- B9% (2)
Why each option
The `kubectl describe` command provides a detailed view of a Kubernetes object, including a dedicated section at the bottom listing related events.
The `kubectl describe` command is specifically designed to show detailed information about a Kubernetes resource, including a list of recent events associated with that object at the very end of its output. This makes it an essential tool for troubleshooting.
`kubectl describe` is the correct command to view detailed information, including events, for a Kubernetes object.
Concept tested: Kubernetes object event inspection
Source: https://kubernetes.io/docs/reference/kubectl/cheatsheet/#inspecting-and-debugging
Topics
Community Discussion
No community discussion yet for this question.