You run hundreds of Kubernetes nodes. Choose between sidecar shippers and a node-level DaemonSet.

IntermediateScenarioLogging Pipelines
Answer

Situation read → Most apps log to stdout; a few legacy apps write to files inside the container.

What I'd do →

  1. Default to a DaemonSet (Alloy, Fluent Bit, Vector) reading /var/log/pods and enriching with Kubernetes metadata.
  2. Use a sidecar only for apps that write to files and cannot change, sharing an emptyDir volume.
  3. Make apps log to stdout/stderr as the standard in the platform guidelines.
  4. Set resource requests and a PriorityClass on the DaemonSet so it is not evicted first.

Why → One agent per node is cheaper and simpler than one per pod; sidecars multiply CPU/memory and config.

Interview tip → Note that kubelet rotates container logs (containerLogMaxSize), so a slow shipper can miss rotated files.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Logging Pipelines