Aggregate logs from a workload set.
Section: Logs, Exec, and Ephemeral Debugging
Read logs for pods matching a label
bash
bash
kubectl logs -n <namespace> -l app=<label> --all-containers=true --prefixLearn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Logs, Exec, and Ephemeral Debugging
Open a shell in a running container
Run commands inside a pod for live inspection.
Inspect environment variables
Quickly validate environment and injected secrets names.