Show the logs of a deployment
Prints the logs of one pod picked from the deployment, so you do not need to look up a pod name.
kubectl logs deployment/deploymentEdit the highlighted values, then copy. They are inserted as typed, without shell escaping.
Report an issue (opens in a new tab) wrong command, wrong danger level, typo… (on GitHub)
Adapted from tldr-pages (common/kubectl-logs.md), licensed under CC BY 4.0.