Sunday, 22 November 2020

Kubernetes logging

 Kubernetes log command

#kubectl logs pod_name

#kubectl logs -f pod_name - print logs continuously


☝Log is specific for the container running in the pod. If pod consists of several containers you have to specify container explicitly.

Or you get an error:

error: a container name must be specified for pod

No comments: