Accessing pod container logs

Kubernetes Dashboard gives you an easy interface for accessing pod container logs quickly. To access logs for one of the pods for our Voting application, go through the following steps:

  1. In the menu, navigate to Workloads | Pods.
  2. Find one of the pods for our Voting application. On the right side, click the three-dot button and select Logs.
  1. You will be redirected to the logs view where you can inspect the logs in real time, just as if you used the kubectl logs command:

Next, let's see how to exec into a pod container.

Get Hands-On Kubernetes on Windows now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.