Kubernetes: Get Node Events
source link: https://www.shellhacks.com/kubernetes-get-node-events/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Kubernetes: Get Node Events
Kubernetes events are automatically created when other resources have state changes, errors or other messages that should be broadcasted to the system.
These events (logs) are very helpful for debugging issues in a Kubernetes cluster.
In this note i will show how to get events from a specific Node in the Kubernetes cluster using the kubectl
command.
Cool Tip: Get Pod’s logs using the kubectl
command! Read more →
Get Node Events in Kubernetes
To get events (logs) from a specific Node in Kubernetes, use the command as follows:
$ kubectl get events --all-namespaces -o wide | grep <node_name>
To follow the Node events in a real-time:
$ kubectl get events --all-namespaces -o wide -w | grep <node_name>
Option | Description |
---|---|
-o wide , --output wide |
Set output format to “wide”. |
-A , --all-namespaces |
List the requested object(s) across all namespaces. |
-w , --watch |
Watch for changes. |
Cool Tip: How to increase a verbosity of the kubectl
command! Read more →
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK