Skip to main content

🔔 Events

Events are Kubernetes' own notices: "the pod was scheduled", "the image was pulled", "the container failed". When a pod does not start, events usually explain why, even before any log exists.

info

Events are queried with kubectl. The Nuvion Panel does not have an events screen.


🚀 Before you start​

🚀 1. See the cluster events​

kubectl get events -A --sort-by=.lastTimestamp

The most recent ones appear last.

🚀 2. See only the warnings​

kubectl get events -A --field-selector type=Warning

Warning events indicate problems. Normal events are informational.

🚀 3. Trigger an error to see the event​

Create a pod with an image that does not exist:

kubectl run erro-imagem --image=nginx:versao-que-nao-existe
kubectl get pods

The STATUS changes to ErrImagePull and then ImagePullBackOff.

🚀 4. See the pod events​

kubectl describe pod erro-imagem

Scroll down to the Events section at the end. It shows, in order, what Kubernetes tried to do and the error message, with the reason Failed and the text indicating that the image was not found.

🚀 5. Follow events in real time​

kubectl get events --watch

Exit with Ctrl+C.

📖 Most common events​

ReasonWhat it means
ScheduledThe pod was assigned to a node
Pulling / PulledThe image is being pulled / was pulled
Created / StartedThe container was created / started
FailedFailure (see the message, such as image not found)
BackOffKubernetes is waiting before trying again
FailedSchedulingNo node has resources for the pod
UnhealthyThe health check (probe) failed
KillingThe container is being terminated
FailedMountA disk or Secret could not be mounted

✅ How to know it worked​

The Events section from step 4 shows the image error.

warning

Events are only available for a short time (about 1 hour). Check soon after the problem occurs.

❗ Common problems​

SymptomCauseSolution
No resources foundEvents have already expired or the namespace is wrongUse -A and reproduce the problem
Old event causes confusionThe list is not sortedUse --sort-by=.lastTimestamp

🧹 Cleanup​

kubectl delete pod erro-imagem

➡️ Next step: Alerts

🧠 Questions?​

Talk to our SaveinCloud technical support team!