Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Hands-On Kubernetes on Azure

You're reading from  Hands-On Kubernetes on Azure

Product type Book
Published in Mar 2019
Publisher Packt
ISBN-13 9781789536102
Pages 258 pages
Edition 1st Edition
Languages
Authors (2):
Shivakumar Gopalakrishnan Shivakumar Gopalakrishnan
Profile icon Shivakumar Gopalakrishnan
Gunther Lenz Gunther Lenz
Profile icon Gunther Lenz
View More author details

Table of Contents (16) Chapters

Preface 1. Section 1: The Basics
2. Introduction to Docker and Kubernetes 3. Kubernetes on Azure (AKS) 4. Section 2: Deploying on AKS
5. Application Deployment on AKS 6. Scaling Your Application to Thousands of Deployments 7. Single Sign-On with Azure AD 8. Monitoring the AKS Cluster and the Application 9. Operation and Maintenance of AKS Applications 10. Section 3: Leveraging Advanced Azure PaaS Services in Combination with AKS
11. Connecting an App to an Azure Database - Authorization 12. Connecting to Other Azure Services (Event Hub) 13. Securing AKS Network Connections 14. Serverless Functions 15. Other Books You May Enjoy

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

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}