kubectl logs web-7d8f9c

Category: Kubernetes & Containers

kubectl logs web-7d8f9c

Print a pod's logs

Shows the stdout and stderr output of the pod's first container. For pods with multiple containers, add -c <container-name>. Follow the log stream with kubectl logs -f web-7d8f9c.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.