Show logs for containers in a pod.
kubectl logs {pod_name}
kubectl logs --container {container_name} {pod_name}
kubectl logs --all-containers={true} {pod_name}
kubectl logs --follow {pod_name}
kubectl logs --follow --container {container_name} {pod_name}
10s
, 5m
, or 1h
:
kubectl logs --since={relative_time} {pod_name}
kubectl logs --tail={10} {pod_name}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).
=> CC-BY This content has been proxied by September (ba2dc).Proxy Information
text/gemini;lang=en-GB