OpenShift - View Node events using oc describe or oc get

by
Jeremy Canfield |
Updated: July 28 2022
| OpenShift articles
If you are not familiar with the oc command, refer to OpenShift - Getting Started with the oc command.
Before issuing the oc describe nodes command, issue the oc login command. The oc get nodes command will return the list of nodes in your selected project, like this.
~]# oc get nodes
NAME STATUS ROLES AGE VERSION
dev001-infra-4k6z9 Ready infra 273d v1.11.0+d4cacc0
dev001-master-0 Ready master 273d v1.11.0+d4cacc0
dev001-worker-5n4fj Ready worker 273d v1.11.0+d4cacc0
The oc describe node <node name> command can be used to display the node events. In this example, the events for dev001-worker-5n4fj will be displayed.
oc describe node dev001-worker-5n4fj
Something like this should be returned.
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 3m default-scheduler Successfully assigned project001/foo-9mzm2-1-build to os.example.com
Normal Pulling 3m kubelet, os.example.com pulling image "repo.example.com/openshift/images:v3.11.219"
Normal Pulled 3m kubelet, os.example.com Successfully pulled image "repo.example.com/openshift/images:v3.11.219"
Normal Created 3m kubelet, os.example.com Created container
Normal Started 3m kubelet, os.example.com Started container
Did you find this article helpful?
If so, consider buying me a coffee over at