Topic 4: Logging

Official baseline: (The Kubernetes Authors, 2026a, 2026b). My working version: Logs are distributed evidence. Kubernetes gives you streams; you decide retention, routing, and search.

Mental Model

Logs are distributed evidence. Kubernetes gives you streams; you decide retention, routing, and search.

Notes

  • Container stdout/stderr is only the beginning.
  • Node and control plane logs matter when the app is not the culprit.
  • Short-lived Pods need log shipping before they disappear.

Homelab Angle

A small Loki or file-based setup is enough if it answers real debugging questions.

Verify It

  • Read the object status before changing the manifest.
  • Check events for the controller or node that is actually complaining.
  • Confirm the official source linked below still matches the cluster version you run.

Common Failure Modes

  • Treating the YAML object as the system, instead of one input to a reconciliation loop.
  • Debugging from outside the cluster when the failure only exists inside cluster networking or node state.
  • Forgetting that Kubernetes version, addon version, and runtime behavior are linked.

Sources

  • Logging Architecture - source path: content/en/docs/concepts/cluster-administration/logging.md, commit 8cc9e19b8eec8d5cf49eacd66f86a81648edb1a0.
  • System Logs - source path: content/en/docs/concepts/cluster-administration/system-logs.md, commit 8cc9e19b8eec8d5cf49eacd66f86a81648edb1a0.
  • Kubernetes documentation is licensed under CC BY 4.0; these notes are original commentary and link back to the official source.
The Kubernetes Authors. (2026a). Logging Architecture. https://kubernetes.io/docs/concepts/cluster-administration/logging/
The Kubernetes Authors. (2026b). System Logs. https://kubernetes.io/docs/concepts/cluster-administration/system-logs/