Events report what has just happened in your Kubernetes cluster, but they are
not a history: they expire after about an hour. Every pod creation,
scheduling error, probe failure or eviction generates an event. This guide shows
you how to read, filter and use these events with kubectl events and
kubectl get events to detect anomalies before they turn into incidents.
What you will learn
- Understand what a Kubernetes Event is and its essential fields
- Use
kubectl eventsto filter by type, resource and namespace - Recognize common event patterns (Normal and Warning)
- Use the Events shown by
kubectl describefor diagnosis - Understand event retention and its implications
Prerequisites
- A working Kubernetes cluster in 1.37, the version this course teaches
kubectlconfigured and connected to the cluster- Read access to the cluster's events
- Having followed the guide Check Kubernetes cluster health with 5 commands
What is a Kubernetes Event?
An Event is an API object that describes something that happened in the cluster. Kubernetes components (kubelet, scheduler, controller-manager) create Events to report normal operations and anomalies.
Each Event contains the fields below, named as in the modern form of the API,
events.k8s.io/v1 (the section on YAML output explains that another form
exists):
| Field | What it indicates |
|---|---|
type | Normal (expected operation) or Warning (anomaly detected) |
reason | Short code identifying the event (Scheduled, BackOff, FailedMount...) |
note | Human-readable description of what happened |
regarding | The resource concerned (pod, node, deployment...) |
reportingController | The component that created the event (kubelet, scheduler...) |
eventTime | Main timestamp of the event |
series.count | Number of repetitions if the event is aggregated |
series.lastObservedTime | Last observed occurrence of this series |
What is the difference between Normal and Warning events?
Kubernetes defines only two types of events:
- Normal reports an expected operation: a pod was scheduled, an image was pulled, a container started. These events confirm that the cluster works.
- Warning reports an anomaly: a scheduling failed, a volume cannot be mounted, a probe failed. These events point to a problem to investigate.
In operations, the Warning events are the ones that deserve your attention. The Normal ones help you rebuild the timeline when you diagnose an incident.
How do I read events with kubectl events?
The kubectl events subcommand offers a more readable display and dedicated
filters, which kubectl get events does not have. It is the command to use
when exploring events.
How do I list all Warning events in the cluster?
kubectl events -A --types=WarningThe -A option (or --all-namespaces) covers the whole cluster.
--types=Warning filters only the anomalies.
How do I filter by resource?
The --for option targets a specific resource:
# Events of a podkubectl events -n default --for=pod/mon-pod
# Events of a nodekubectl events --for=node/ks-worker1
# Events of a deploymentkubectl events -n default --for=deployment/mon-deploymentHow do I follow events in real time?
The --watch flag displays new events as they arrive:
kubectl events -A --types=Warning --watchUse it during a maintenance window or a deployment: anomalies appear as they happen.
How do I get the full detail in YAML?
To see all the fields of an event:
kubectl events -A -o yaml | head -60The same event nevertheless exists in two forms, with different field
names, and this explains many fruitless searches. The command above returns
the historical form, apiVersion: v1:
apiVersion: v1involvedObject: count: firstTimestamp:source: message: lastTimestamp:The modern form, events.k8s.io/v1, must be requested explicitly and renames
everything:
kubectl get events.events.k8s.io -A -o yaml | head -60apiVersion: events.k8s.io/v1regarding: note: eventTime:reportingController: deprecatedCount: deprecatedLastTimestamp:The mapping is direct: involvedObject becomes regarding, message becomes
note, source becomes reportingController. The old names survive in the
new API, prefixed with deprecated (like deprecatedCount). A series field
also appears, but only on an event that repeats: on a quiet cluster, do not
look for it.
The practical consequence: a jsonpath written for one form does not work on
the other. involvedObject.name returns nothing in events.k8s.io/v1, where
you must write regarding.name.
How do I read events with kubectl get events?
The classic kubectl get events command remains useful for filtering by field
with --field-selector:
# Warning events onlykubectl get events -A --field-selector type=Warning
# Events of a specific objectkubectl get events -n default --field-selector involvedObject.name=mon-pod
# Combine filterskubectl get events -A --field-selector type=Warning,reason=FailedSchedulingMany examples online sort with --sort-by=.lastTimestamp or
--sort-by=.metadata.creationTimestamp. These fields belong to the historical
model, the one that events.k8s.io/v1 files under the deprecated prefix.
They still work and nothing urges you to replace them in a script that
runs. kubectl events nevertheless spares you from choosing: its filters rely
on the modern model.
How do I see events in kubectl describe?
The kubectl describe command displays the events related to a resource in
its Events section at the bottom of the output. It is often the first thing
to read when diagnosing a pod:
kubectl describe pod mon-pod -n defaultThe Events section at the bottom looks like this:
Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal Scheduled 2m default-scheduler Successfully assigned default/mon-pod to ks-worker1 Normal Pulling 2m kubelet Pulling image "nginx:1.27" Normal Pulled 118s kubelet Successfully pulled image "nginx:1.27" Normal Created 118s kubelet Created container nginx Normal Started 118s kubelet Started container nginxThis sequence shows the normal lifecycle of a pod: scheduling → image pull → container creation → start.
kubectl describe node displays the events related to a node in the same way
(evictions, kubelet problems, resource pressure).
kubectl describe presents a condensed view of the events related to the
resource, without exposing all the fields of the events.k8s.io/v1 model,
such as reportingController or series. To see them, request the modern
form: kubectl get events.events.k8s.io -o yaml (see the YAML output section
above).
Which event patterns are common?
The reason values in the two tables below come up regularly. Knowing them by
sight saves time: you skim the normal lines and stop on the ones that are not.
Normal events (expected operations)
These events tell the normal lifecycle of a pod, from placement to start. Seeing them in this order is a sign that all is well. The place where the sequence stops points to the failing step.
| Reason | Source | What it means |
|---|---|---|
Scheduled | scheduler | The pod was assigned to a node |
Pulling | kubelet | The image pull has started |
Pulled | kubelet | The image was pulled (or was already cached) |
Created | kubelet | The container was created |
Started | kubelet | The container started |
ScalingReplicaSet | deployment-controller | A Deployment adjusted the number of replicas |
SuccessfulCreate | replicaset-controller | A ReplicaSet created a pod |
Killing | kubelet | The container is being stopped (rolling update, deletion) |
Warning events (anomalies to investigate)
| Reason | Source | What it means | Action |
|---|---|---|---|
FailedScheduling | scheduler | No node can host the pod | Check requests, taints, affinity, node capacity |
BackOff | kubelet | The container crashed and Kubernetes waits before restarting it | Check the logs: kubectl logs --previous |
FailedMount | kubelet | A volume could not be mounted | Check the PVC, the StorageClass, the permissions |
FailedAttachVolume | attachdetach-controller | The volume could not be attached to the node | Check the storage provider and the volume state |
Unhealthy | kubelet | A liveness or readiness probe failed | Check the probe configuration and the application state |
Evicted | kubelet | The pod was evicted (node memory/disk pressure) | Check the node conditions, adjust resources |
NodeNotReady | node-controller | A node lost contact with the control plane | Check the kubelet and the node network |
FailedCreate | replicaset-controller | The ReplicaSet could not create a pod | Check quotas, RBAC, or admission errors |
You read this repetition directly in kubectl events and in
kubectl describe: the age column then shows, for example,
8m22s (x1321 over 73m). The event occurred 1321 times in 73 minutes,
and its last occurrence was 8 minutes 22 seconds ago.
How long does Kubernetes keep events?
By default, the API server keeps Events for 1 hour through the
--event-ttl=1h0m0s parameter. After that, they are deleted automatically.
Events are therefore useful for immediate diagnosis, but not as a
history system.
What this implies:
- Events are not a monitoring system: they disappear. To keep a history, export them to a log system (Elasticsearch, Loki, etc.)
- If an incident happened more than an hour ago, the Events have probably disappeared. You will have to rely on component logs or on a centralization tool
The reason for this short TTL is storage: Events live in the Kubernetes API, therefore in etcd, just like your Deployments. On a very busy cluster, they can represent a significant share of etcd writes, which is why they are not kept. If incident history matters to you, it is therefore not the TTL that you should lengthen, it is an export to a log system that you should set up.
Practical example: diagnose with Events
Here is a typical scenario. A colleague reports that an application no longer responds. You start with the Events:
-
Check the namespace's recent Warnings:
Terminal window kubectl events -n mon-app --types=WarningResult: several
BackOffevents on the podapi-server-xyz. -
Target the pod's events:
Terminal window kubectl events -n mon-app --for=pod/api-server-xyzThe sequence shows:
Started→BackOff→Started→BackOffin a loop. The container crashes in a loop. -
Complete with the logs:
Terminal window kubectl logs api-server-xyz -n mon-app --previous --tail=30The logs reveal a database connection error.
-
Check the Events of the database Pod:
Terminal window kubectl events -n mon-app --for=pod/postgres-0An
Evictedevent appears: the PostgreSQL pod was evicted because of memory pressure on the node.
In four commands, the events made it possible to trace back to the cause: eviction of the database Pod, then a connection error in the API, then a restart loop.
Troubleshooting
The first four symptoms below are about difficulty finding or reading the events; the last two describe events that repeat. An empty list is confusing: it looks like an absence of problems, when it often means that you are looking in the wrong place, or too late.
| Symptom | Likely cause | Solution |
|---|---|---|
kubectl events returns error: unknown command | kubectl version < 1.26 | Update kubectl, or use kubectl get events |
| No events displayed | Events expired (TTL exceeded) | Start observing again, Events only persist for ~1h |
| Too many events, hard to find the information | Busy cluster without filtering | Use --types=Warning, --for=<resource> or --field-selector |
Events visible in describe but not in kubectl events | Namespace or timing difference | Check the namespace with -n, both commands read the same objects |
FailedScheduling Warning looping without resolution | Insufficient resources on all nodes | kubectl describe pod for details, add a node or adjust the requests |
Repeated events, increasing counter (x1321 over 73m) | Persistent unresolved problem | Fix the root cause (the counter only indicates repetition) |
Hands-on practice
The previous sections show how to read Events by hand. This lab puts you in front of a boutique namespace that hosts five applications, four of which are broken, each in a different way. You repair nothing: you read the namespace's Events, then write the incident report in the rapport ConfigMap. It gives the reason for the Warning Events of each broken application, names the healthy one and identifies the first application hit.
The validation checks three requirements: each broken application carries the reason of its Warning Events word for word, the application with no Warning Event at all is called healthy, and the report names the application hit by the first Warning Event of the namespace. For the last requirement, you need to sort the Events by date: the section on kubectl get events shows the sorting options. Events expire after about an hour (retention section): read them without waiting once the lab has started.
Key takeaways
- Read the Events before the logs: they say what Kubernetes did (or tried to do). They are immediate signals, not a complete history
kubectl events -A --types=Warninglists all the cluster's anomalies in a single command- An Event is either
NormalorWarning:Normalreports an expected operation,Warningan anomaly - Repetition matters more than occurrence: an isolated Warning is often harmless, a Warning that repeats signals a real problem
- Events disappear after ~1 hour: they do not replace a monitoring system. For a history, centralize them in a log tool
kubectl describedisplays a resource's Events at the bottom of its output, which is often enough to diagnose a specific resource- The same event exists in two forms (
v1andevents.k8s.io/v1) with different field names: ajsonpathwritten for one does not work on the other
Knowledge check
Seven questions on what trips readers up: the two sets of field names of
the same event, how to read a repetition counter, and what an empty
Events section really means.
Knowledge check
Check what you have learned with this interactive quiz
How it works
- The timer starts when you click Start
- Multiple choice, true/false and short answer questions
- You can move between questions
- Detailed results are shown at the end
Starts the quiz and the timer
Review
(0/0)Result saved on this device. It will be sent to your account at the next sync. Sync now
Score by domain
A domain groups several guides and gets several questions, so its score is more reliable than a per-topic score, which often rests on a single question.
Summary
Strengths
No topic passed at 80% on at least two questions yet.
Weak areas
No topic below the pass mark.
Recommended next
Hints before you try again?
Continue the course: Diagnose Kubernetes Application Incidents
A new full quiz with random questions
Work again only on the questions you missed