Kubernetes with Ansible
Task __ Description:- In this blog, we will perform the following tasks: Create Ansible Playbook to launch 3 AWS EC2 Instance. Create Ansible Playbook to configure Docker over those instances. Create Playbook to configure K8S Master, K8S Worker Nodes on the above created EC2 Instances using kubeadm. So first we will be creating a directory for ansible-playbook and make roles in that folder - #mkdir ansible-playbook #cd ansible-playbook #ansible-galaxy init aws_provision #ansible-galaxy init cluster_setup After this inside the aws_provision we will see for present folders. then inside the tasks folder, we will create our playbook in main.yml. Then open the main.yml inside vars folder to give the slave count. As we can observe there is no instance in the AWS cloud, so we'll have to run the aws_provision role to launch the instances. So cre...