$ oc get events
OKD events are records of important life-cycle information in a namespace and are useful for monitoring and troubleshooting resource scheduling, creation, and deletion issues.
OKD Virtualization adds events for virtual machines and virtual machine instances. These can be viewed from either the web console or the CLI.
You can view the stream events for a running a virtual machine from the Virtual Machine Overview panel of the web console.
The ▮▮ button pauses the events stream.
The ▶ button continues a paused events stream.
Click Workloads → Virtualization from the side menu.
Click the Virtual Machines tab.
Select a virtual machine to open the Virtual Machine Overview screen.
Click Events to view all events for the virtual machine.
Use the OKD client to get the events for a namespace.
In the namespace, use the oc get
command:
$ oc get events
Events are included in the resource description, which you can get using the OKD client.
In the namespace, use the oc describe
command. The following example shows
how to get the events for a virtual machine, a virtual machine instance, and the
virt-launcher pod for a virtual machine:
$ oc describe vm <vm>
$ oc describe vmi <vmi>
$ oc describe pod virt-launcher-<name>