Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
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 Automate management, scaling, and deployment of containerized applications

Arrow left icon
Product type Paperback
Published in May 2020
Publisher Packt
ISBN-13 9781800209671
Length 368 pages
Edition 2nd Edition
Tools
Arrow right icon
Authors (3):
Arrow left icon
Nills Franssens Nills Franssens
Author Profile Icon Nills Franssens
Nills Franssens
Gunther Lenz Gunther Lenz
Author Profile Icon Gunther Lenz
Gunther Lenz
Shivakumar Gopalakrishnan Shivakumar Gopalakrishnan
Author Profile Icon Shivakumar Gopalakrishnan
Shivakumar Gopalakrishnan
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Preface Section 1: The Basics
1. Introduction to Docker and Kubernetes FREE CHAPTER 2. Kubernetes on Azure (AKS) Section 2: Deploying on AKS
3. Application deployment on AKS 4. Building scalable applications 5. Handling common failures in AKS 6. Securing your application with HTTPS and Azure AD 7. Monitoring the AKS cluster and the application Section 3: Leveraging advanced Azure PaaS services
8. Connecting an app to an Azure database 9. Connecting to Azure Event Hubs 10. Securing your AKS cluster 11. Serverless functions Index

Handling node failures

Intentionally (to save costs) or unintentionally, nodes can go down. When that happens, you don't want to get the proverbial 3 a.m. call that your system is down. Kubernetes can handle moving workloads on failed nodes automatically for you instead. In this exercise, we are going to deploy the guestbook application and are going to bring a node down in our cluster and see what Kubernetes does in response:

  1. Ensure that your cluster has at least two nodes:
    kubectl get nodes

    This should generate an output as shown in Figure 5.1:

    Executing the kubectl get nodes command displays an output withtwo nodes. The status of these two nodes is Ready.
    Figure 5.1: Ensure you have two nodes running in your cluster

    If you don't have two nodes in your cluster, look for your cluster in the Azure portal, navigate to Node pools, and click on Node count. You can scale this to 2 nodes as shown in Figure 5.2:

    Click on the Node pools tab in the Navigation pane located on the left side of the Azure portal. This will open show you several options. Go to the Node count option. Click on it to scale this count to two nodes.
    Figure 5.2: Scaling the cluster
  2. As an example application in this chapter, we will work with the guestbook application. The YAML file to deploy this has been provided in the...
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 ₹800/month. Cancel anytime