Cheatsheet Pages / kubectl Cheatsheet
How to read a pod's logs — kubectl logs
The application misbehaves and its stdout is the first place to look.
Placeholders follow the cheatsheet: web is a deployment/pod name and app.yaml is your manifest. Most commands act on the current namespace — add -n <ns> to target another one.
kubectl logs web-6d9f7c5b4-x2abc # stdout/stderr of the (single) container
kubectl logs web-6d9f7c5b4-x2abc -c api # multi-container pod? pick one with -c
