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...