AWS, Cloud Computing

4 Mins Read

Multi-AZ deployment of Amazon EKS

Voiced by Amazon Polly

Introduction

Amazon Elastic Kubernetes Service (EKS) is a managed Kubernetes service provided by Amazon Web Services (AWS). It allows you to deploy, manage, and scale containerized applications using Kubernetes on AWS infrastructure. Multi-AZ (Availability Zone) deployment in Amazon EKS ensures high availability and fault tolerance for your Kubernetes clusters by distributing resources across multiple Availability Zones within an AWS region.

Pioneers in Cloud Consulting & Migration Services

  • Reduced infrastructural costs
  • Accelerated application deployment
Get Started

Benefits of Multi-AZ Deployment in Amazon EKS

  • High Availability: Distributing your cluster across multiple AZs ensures that your applications remain available in case of an AZ failure.
  • Fault Tolerance: If one AZ experiences issues, the workload can be shifted to another AZ, maintaining continuity.
  • Improved Performance: Distributing nodes across AZs can enhance the performance of your applications by leveraging resources from multiple locations.
  • Automatic Failover: Amazon EKS handles the deployment of nodes across AZs and ensures that your cluster is resilient to failures.

Steps to Deploy Multi-AZ Amazon EKS Cluster

Step 1: Spin up two Amazon EKS clusters in two different regions. Cluster 1 is in Mumbai, and Cluster 2 is in Singapore. The naming convention can be changed according to use case.

step1

step1b

Step 2: Create an OIDC provider for both the cluster after the cluster’s creation.

step2

Step 3: Create a policy and service account for the load balancer controller.

step3

Step 4: Create a load balancer controller with helm Amazon EKS charts and deploy it in both clusters. It will be visible in the kube-system namespace.

step4

step4b

step4c

step4d

Step 5: Deploy a sample application in both the clusters and ingress to create load balancers for public access.

step5

step5b

step5c

step5d

Step 6: Create a global accelerator, add a listener with endpoint groups for the two regions used, and add an endpoint for the ingress load balancer. Set traffic dial for the Mumbai region to 100% and the Singapore region to 0%.

step6

Step 7: After creating the global accelerator is completed, check the listener rule for the healthy and unhealthy status of the load balancer. Check the accessibility in the browser.

step7

step7b

Step 8: Stop the running sample application in the Singapore region and check the health status again. There will be 30 seconds of downtime before it routes to the healthy listener.

step8

step8b

Healthy listener

lis

Unhealthy listener

lis2

lis3

Conclusion

In conclusion, deploying a multi-AZ Amazon EKS cluster provides a robust foundation for running containerized applications with high availability and fault tolerance on the AWS cloud. Leveraging the managed Kubernetes service, Amazon EKS, and the eksctl command-line utility streamlines the process of creating and managing clusters, allowing you to focus on your applications rather than the underlying infrastructure. As you embark on your journey with multi-AZ Amazon EKS clusters, stay informed about the latest AWS updates and best practices. Regularly consult the official documentation for any changes or optimizations that may enhance the security, performance, and efficiency of your Kubernetes workloads on Amazon EKS.

With a well-designed and properly configured multi-AZ EKS cluster, you can confidently deploy and manage containerized applications with the reliability and scalability demanded by modern cloud-native architectures.

Drop a query if you have any questions regarding Amazon EKS cluster and we will get back to you quickly.

Making IT Networks Enterprise-ready – Cloud Management Services

  • Accelerated cloud migration
  • End-to-end view of the cloud environment
Get Started

About CloudThat

CloudThat is an award-winning company and the first in India to offer cloud training and consulting services worldwide. As a Microsoft Solutions Partner, AWS Advanced Tier Training Partner, and Google Cloud Platform Partner, CloudThat has empowered over 850,000 professionals through 600+ cloud certifications winning global recognition for its training excellence including 20 MCT Trainers in Microsoft’s Global Top 100 and an impressive 12 awards in the last 8 years. CloudThat specializes in Cloud Migration, Data Platforms, DevOps, IoT, and cutting-edge technologies like Gen AI & AI/ML. It has delivered over 500 consulting projects for 250+ organizations in 30+ countries as it continues to empower professionals and enterprises to thrive in the digital-first world.

FAQs

1. Why is Multi-AZ Deployment important for Amazon EKS Clusters?

ANS: – Multi-AZ deployment in Amazon EKS ensures high availability by distributing resources across multiple Availability Zones. This helps prevent downtime and improves the fault tolerance of your Kubernetes clusters, making them more resilient to infrastructure failures.

2. How can I check the number of nodes in each Availability Zone in my Amazon EKS Cluster?

ANS: – You can use the kubectl get nodes command to view the nodes in your EKS cluster. The output will display the nodes and their corresponding Availability Zones, allowing you to verify the distribution across multiple AZs.

WRITTEN BY Jeet Patel

Share

Comments

    Click to Comment

Get The Most Out Of Us

Our support doesn't end here. We have monthly newsletters, study guides, practice questions, and more to assist you in upgrading your cloud career. Subscribe to get them all!