Skip to content

pod

View logs of running and crashed pods in Kubernetes

This tutorial will show you how to view logs of running and crashed pods in Kubernetes, also the ability to “tail” the log content.

First, find your pod’s name

Discover your pod’s name by running the following command, and picking the desired pod’s name from the list:

kubectl get pods
NAME                          READY     STATUS             RESTARTS   AGE
customer-96f4985b5-9h5pp      1/1       Running            7          11d
order-569b7f8f55-drd9t        1/1       Running            0          7d
Read More »View logs of running and crashed pods in Kubernetes