OpenShift - View Node events using oc describe or oc get

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 Buy Me A Coffee

Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.





Please enter eb6f6 in the box below so that we can be sure you are a human.




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |