Command line tool (kubectl) | Kubernetes

PHOTO EMBED

Fri May 31 2024 22:24:40 GMT+0000 (Coordinated Universal Time)

Saved by @calazar23

# Return a snapshot of the logs from pod <pod-name>.

kubectl logs <pod-name>



# Start streaming the logs from pod <pod-name>. This is similar to the 'tail -f' Linux command.

kubectl logs -f <pod-name>
content_copyCOPY

https://kubernetes.io/docs/reference/kubectl/