Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Hands-On Kubernetes on Azure

You're reading from   Hands-On Kubernetes on Azure Run your applications securely and at scale on the most widely adopted orchestration platform

Arrow left icon
Product type Paperback
Published in Mar 2019
Publisher Packt
ISBN-13 9781789536102
Length 258 pages
Edition 1st Edition
Tools
Arrow right icon
Authors (2):
Arrow left icon
Shivakumar Gopalakrishnan Shivakumar Gopalakrishnan
Author Profile Icon Shivakumar Gopalakrishnan
Shivakumar Gopalakrishnan
Gunther Lenz Gunther Lenz
Author Profile Icon Gunther Lenz
Gunther Lenz
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Preface 1. Section 1: The Basics FREE CHAPTER
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 $19.99/month. Cancel anytime
Banner background image