Interview Prep/Kubernetes/Observability & Day-2 Operations

Where do container logs live and how do you ship them?

BeginnerProductionObservability & Day-2 Operations
Answer

The container runtime writes stdout/stderr to files under /var/log/pods and /var/log/containers on the node; kubectl logs reads from there and rotation is limited by kubelet settings. A DaemonSet agent (Fluent Bit) tails those files, enriches with Pod metadata and forwards to a central store. Apps should log to stdout in JSON.

All Kubernetes questions

More on Observability & Day-2 Operations