Interview Prep/Kubernetes/Upgrades, etcd, disaster recovery and incidents

How do you read a Kubernetes event and why do events disappear?

BeginnerScenarioUpgrades, etcd, disaster recovery and incidents
Answer

Situation read → Events are missing.

What I'd do →

  1. kubectl get events --sort-by=.lastTimestamp
  2. kubectl describe includes events for that object
  3. Events live about one hour by default
  4. Ship events to logs with an exporter
  5. Use -A for all namespaces

Why → Events are short-lived objects in etcd.

Interview tip → Export them for history.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Upgrades, etcd, disaster recovery and incidents