liveBook · Manning

Standard error

As explained in Acing the Certified Kubernetes Administrator Exam, Second Edition

Standard error is the conventional output stream through which a process writes diagnostic and error messages.

Standard error (stderr) is the conventional output stream used by a container process for diagnostic and error messages. Kubernetes exposes it alongside standard output through kubectl logs. section 8.1.1

Viewing container output

For a multi-container Pod, kubectl logs busybox -c sidecar selects one container’s output. kubectl logs busybox --all-containers combines output from both containers, while kubectl describe po brick exposes a startup error and exit code when the container cannot run. section 8.1.1

How Acing the Certified Kubernetes Administrator Exam, Second Edition covers it

How deep it goes
Defines stderr and shows how to retrieve container output, but does not explain stream redirection or runtime internals.
Examples
Demonstrates selected-container logs, combined multi-container logs, and a failed container diagnosed with kubectl describe.
What it assumes
Assumes basic familiarity with containers, Pods, and kubectl; distinguishes stdout and stderr without teaching process I/O from first principles.
What you can do after
Diagnose container behavior by retrieving logs and inspecting startup errors with kubectl.
How it connects
Connects standard error with standard output, container logs, Pods, multi-container Pods, and troubleshooting.

Also explained in

Compare how 2 books explain standard error →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Acing the Certified Kubernetes Administrator Exam, Second Edition. The section links point to the parts of the book it draws on.