Kubernetes · Command
kubectl logs
Reads logs from a container in a pod or supported resource. It can show a snapshot, stream new output, inspect a previous container, or select multiple pods.
Last updated
Syntax
kubectl logs [-f] [-p] (POD | TYPE/NAME) [-c CONTAINER]In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
kubectl execkubectl describekubectl eventskubectl port-forwardkubectl top