Commands for monitoring applications

Monitoring deployed applications on AKS along with monitoring Kubernetes health is essential to provide reliable service to your customers. There are two primary use cases for monitoring:

  • Debugging applications (used mostly when deploying/upgrading apps)
  • On-going monitoring to get alerts if something is not behaving as expected

We will handle the first use case of debugging when deploying/upgrading applications. The same methodology also applies for debugging running applications for which the commands are as follows:

kubectl get xxx
kubectl logs xxx

Before we start, we are going to have a clean start with our guestbook example.

If you have guestbook already running in your cluster, delete it by running the following command on the Azure Cloud Shell:

kubectl delete -f guestbook-all-in-one.yaml

Recreate the guestbook again using the following command:

kubectl create -f guestbook-all-in-one.yaml

While the create command is running, we will watch the progress in the following sections.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset