Kubernetes (K8s) is a container orchestration platform that helps deploy, scale, and manage containerized applications. One way to manage a Kubernetes cluster is using kubeadm on AWS EC2 instances.
In this guide, we will set up a Kubernetes cluster with one master node and one worker node.
The master and worker nodes use Ubuntu 20.04 or newer as the OS. Open port 6443 on the master node.
Docker, kubeadm, kubelet, and kubectl are the essential tools required to set up the cluster.
Start by launching the two EC2 instances: one t2.large instance as the master node and one t2.medium instance as the worker node.
Update and upgrade both nodes, install Docker, kubeadm, kubelet, kubectl, and initialize the master node.
Add the worker node to the cluster, verify the cluster, and deploy the Nginx pod.
This setup provides a foundation for experimenting with advanced Kubernetes features and workloads.
Overall, building a Kubernetes cluster using kubeadm is a straightforward process that lets you deploy, scale, and manage containerized applications efficiently.