Kubernetes event

A short, time-stamped record a component writes into the cluster to say what it did or why it could not, such as Scheduled or FailedMount.

In more detail

Events name the component that reported them, the object involved, a reason and a message, so they show which part of the cluster made a decision. They are the first evidence to collect in almost every troubleshooting lesson, and kubectl describe prints them at the end. Events expire after about an hour by default, so capture them before you change anything.

Examples

kubectl get events --sort-by=.lastTimestamp | tail -n 4
kubectl get events --field-selector reason=Scheduled

Related terms

Taught in

References

Certification courses