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 →

Leave a Reply