Interview Prep/Kubernetes/Cluster operations: certs, drains, rollouts and quotas

A teammate asks why `kubectl get events` shows nothing for a crash that happened three hours ago.

BeginnerTroubleshootingCluster operations: certs, drains, rollouts and quotas
Answer

Likely causes → Events are stored with a TTL, by default one hour (--event-ttl=1h on the API server). Old events are gone.

Diagnose →

kubectl get events -A --sort-by=.lastTimestamp | tail
kubectl events -n api --for pod/api-x        # newer kubectl events subcommand

Fix → For the past incident, rely on logs, metrics (kube_pod_container_status_last_terminated_reason) and audit logs.

Prevent → Ship events to your log platform with an event exporter (kubernetes-event-exporter, Fluent Bit kubernetes_events input) so they are kept for weeks.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Cluster operations: certs, drains, rollouts and quotas