One of the most important features that will be helpful after your microservices are deployed to a cluster is being able to monitor the logs of your application. In this recipe, you will learn how to monitor the logs of your application from the Kubernetes dashboard as well as kubectl
.
Open up the Kubernetes dashboard if you already have your cluster running. If not, use Minikube to start the cluster and open the dashboard. Make sure there are no instances of the geolocation container running on your Kubernetes cluster. If you have any instance of geolocation
running, delete the replication controllers, services, and pods.
To be able to view the logs, we need our microservice deployed on Kubernetes first. Before that, let's get familiar with viewing the logs from the Kubernetes dashboard. Open it up. Use the friendly form and enter the following configurations to create your microservice:
App name:
geolocation
Container...