Use it when pods fail or the cluster behaves unexpectedly.
Kubernetes Events
Kubernetes events record cluster activity — scheduling, image pulls, probe failures, OOM kills, scaling — and expire after about an hour by default.
1. Recent warnings: kubectl get events -A --field-selector type=Warning --sort-by=.lastTimestamp.
2. Per object: kubectl describe pod <pod>.
3. Reasons: FailedScheduling, BackOff, Unhealthy, OOMKilling.
4. Events exported?
5. Correlate with metrics.
controller action → Event object → kubectl/exporter → log platform
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 How to verify Verify boundary
During an incident, read Warning events first. After the incident, confirm the exported events cover the period.
Step 2 Common failures Narrow the fault
Events disappear before someone reads them. Large clusters produce many events and load the API server if retention is long. Relying only on events misses application-level errors.
Events are short-lived: export them (event exporter, Collector k8sobjects receiver) to keep history. Warnings are the interesting ones.
kubectl get events -A --field-selector type=Warning --sort-by=.lastTimestamp— first check for this topiccurl -s localhost:9090/-/ready— Prometheus readycurl -s 'localhost:9090/api/v1/query?query=up'— scrape targets up/downpromtool check config prometheus.yml— config valid
ReferenceWhat it is1 section · depth on demand
How it works
Components create Event objects referencing the involved object, with reason, message, count and timestamps. Repeated events are counted instead of duplicated.
ReferenceImportant terms & boundaries3 sections · depth on demand
Using events
kubectl get events -A --sort-by=.lastTimestamp
kubectl get events --field-selector type=Warning -n app
kubectl describe pod <pod> # events at the bottom
Events expire after one hour by default, so export them (kubernetes-event-exporter, OpenTelemetry k8sobjects receiver) to keep history. Common warnings: FailedScheduling, BackOff, Unhealthy, FailedMount, Evicted.
In depth
What events are — and are not
Events are short-lived, best-effort records written by controllers, the scheduler and kubelets. The API server keeps them for a limited time (--event-ttl, one hour by default), repeated events are deduplicated into one object with a count, and reasons and messages can change between versions. They are excellent hints during an incident and a poor audit log.
Reading events efficiently
kubectl get events -A --field-selector type=Warning --sort-by=.lastTimestamp | tail -20
kubectl get events -n shop --field-selector involvedObject.kind=Pod,involvedObject.name=api-7f…
kubectl events -n shop --for pod/api-7f… --watch # kubectl 1.26+
Reasons worth recognising
| Reason | Source | Meaning |
|---|---|---|
FailedScheduling | scheduler | No node fits — message lists why per node count |
FailedMount, FailedAttachVolume | kubelet / attach controller | Volume problem |
BackOff | kubelet | Container restarting (CrashLoopBackOff) or image pull back-off |
Unhealthy | kubelet | Probe failed |
OOMKilling / Evicted | kernel monitor / kubelet | Memory kill or node-pressure eviction |
FailedCreate | ReplicaSet/Job controller | Pod rejected (quota, admission policy, security) |
NodeNotReady | node controller | Node lost |
Keeping them
To see events after an incident, export them: an event exporter (or the OpenTelemetry Collector's k8sobjects/k8s_events receiver) writes each event as a log line to the log platform, where it can be searched with the deployment markers and application logs for the same period. Keep the exporter's own volume in check by dropping Normal events you never use.
Common mistakes
- Kubernetes events retained only for a short time (export them).
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.