TECHIES WORLD

For Techs.... Techniques.... Technologies....

BashLinux

How to check logs for Kubernates pod

We can use the kubectl command to check logs of Kubernates pod.

#kubectl logs po/pod-name -n namespace

Here we need to replace pod-name and namespace with the corresponding values.

It we need to view the logs in realtime, use the following command.

#kubectl logs po/pod-name -n namespace -f 

Here we need to replace pod-name and namespace with the corresponding values.

That's all…

Leave a Reply