First, we need to create one docker image and push it to the Azure Container registry, and after write terraform code for provision.
For solving this issue I am showing two methods, the first is manually and the second is Automation, btw I prefer automation 😁.
docker pull centos
docker run --net=host -it --name c1 centos
ansible-galaxy collection install rootritesh.k8s_cluster
Ansible Roles to Configure K8S Multi-Node Cluster over AWS Cloud.
For this problem statement, I am using the Ansible collection, in this ansible collection I am creating 3 roles, one for ec2, the second for Kubernetes master, third for Kubernetes slave 🙂.
For this Problem Statement, we need two OS 😅.
chmod 600 Key_Name.pem
First, we need to delete all the IP addresses from all the OS routing tables. after that add the System A Ip in System B and System C routing table, at last, add the System B and System C Ip in System A routing table. huh, that’s simple 😅.
route del -net 192.168.0.0(IP_ADDRESS) gw 192.168.0.1(GATEWAY) netmask 255.255.255.0(NETMASK) enp0s3(NIC Card)