Day 55 - Kubernetes Multi Master Cluster Setup With Loadbalancer
About this video
### Comprehensive Final Summary This final video (Day 55) of the **CK 2025 series** serves as a capstone to an extended learning journey, building on the original 40-day **CKA (Certified Kubernetes Administrator)** series with 13 additional videos that address recent updates in the 2025 exam curriculum. The instructor, **Push**, underscores the importance of following the series sequentially, particularly for those new to Kubernetes or preparing for the Certified Kubernetes (CK) exams. The primary focus of this video is setting up a **highly available (HA) Kubernetes cluster** with multiple master nodes, worker nodes, and a load balancer. This setup expands on the single-master-node configuration introduced in Day 27, which presented a **single point of failure**—if the master node went down, critical administrative functions such as the API server, scheduler, and controller manager would fail, disrupting cluster operations. To mitigate this risk, the video demonstrates how to configure **two control plane (master) nodes** and **two worker nodes**, along with an additional node dedicated to hosting the **load balancer**. The load balancer plays a crucial role by distributing traffic across the master nodes, ensuring continuous availability even if one control plane node fails. Two types of setups are discussed: 1. **Stacked etcd** (where etcd is embedded within the control plane nodes). 2. **External etcd** (where etcd runs on separate nodes for enhanced availability). The video focuses on the **stacked etcd** approach, providing a practical demonstration of its implementation. If one control plane node becomes unavailable, the remaining nodes can seamlessly handle requests, maintaining uninterrupted administrative functions. The instructor uses **AWS** to create a virtual private cloud (VPC) with public subnets, configuring security groups tailored for master, worker, and load balancer nodes. EC2 instances are launched for each role, and **HAProxy** is installed on the load balancer node to manage traffic distribution between the master nodes. Key steps include: - Disabling swap. - Updating kernel parameters. - Installing a container runtime (e.g., **containerD**, **RunC**). - Initializing the Kubernetes control plane using `kubeadm init` on the leader master node. - Generating tokens to allow other master and worker nodes to join the cluster. - Configuring HAProxy with frontend and backend details to redirect traffic effectively. The process also includes installing essential components like **CNI plugins** and Kubernetes utilities (**kubeadm**, **kubelet**, **kubectl**), initializing the control plane, joining additional master and worker nodes, and deploying a network plugin such as **Calico**. Troubleshooting tips are provided to address common challenges during setup, reinforcing the importance of hands-on practice for mastering Kubernetes administration tasks. The video concludes with a detailed walkthrough of setting up the environment, including configuring networking, security groups, and launching virtual machines on AWS. It emphasizes the value of community engagement for further support and learning, encouraging viewers to actively participate in discussions and share their experiences. In summary, this final video equips learners with the skills to deploy a robust, highly available Kubernetes cluster using **HAProxy**, while addressing key concepts like **stacked etcd**, load balancing, and multi-node configurations. It reinforces the importance of sequential learning, hands-on practice, and community involvement in mastering Kubernetes administration.
Course: Certified Kubernetes Administrator Full Course For beginners | CKA 2025
This playlist contains the complete CKA series for beginners, based on the latest 2025 curriculum. It includes 40+ videos with hands-on demos, assignments, and exam-based scenarios. We will cover everything from the basics to the Advanced, including fundamental concepts such as Docker, containers, Docker storage and networking, DNS, etc.
View Full Course