Kubectl logs

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Overview

kubectl logs -f -c <container-name> <pod-name>

Options

-f

Streams the logs

-c

In case of multi-container pods, it is a good idea to specify the container you want to monitor, otherwise you'll see the logs produced by the first one, which may not what you want to see.