ARTH — Task 19 👨🏻‍💻

Task Description📄

📌 Ansible Role to Configure K8S Multi-Node Cluster over AWS Cloud.
🔅 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.
🔅 Convert Playbook into roles and Upload those roles on your Ansible Galaxy.
🔅 Also, Upload all the YAML code over your GitHub Repository.
🔅 Create a README.md document using markdown language describing your Task in a creative manner.

TASK STARTS!!!

STEP:1: Create an Ansible-playbook to launch 3 AWS EC2 instances.

# Create roles to launch ec2_instances.

CMD: ansible-galaxy role init <role_name>
ROLES CREATED FOR EC2-INSTANCES

NOTE: see the below post to know the necessary requirements to launch AWS instances using ansible playbook.

vim tasks/main.yml

vim vars/main.yml

vim ec2.yml

STEP:1.1: Run the ansible-playbook…

cmd: ansible-playbook <playbook_name>

TO CHECK :

Finally, launched 3 AWS EC2 instances!!!

STEP:2: Create roles for k8s-cluster…

STEP:3: Configure k8s-MASTER…

STEP:3.1: Update tasks dir in k8s_master role.

STEP:3.2: Update vars dir in k8s_master role.

STEP:4: Configure k8s-SLAVES…

STEP:4.1: Update tasks dir in k8s_slaves role.

STEP:5: Create an Ansible-playbook for the k8s-cluster role…

STEP:6: Run the Ansible-playbook…

TO CHECK:

GITHUB URL:

ANSIBLE-GALAXY URL:

  1. EC2-ROLE

2. K8S-MASTER ROLE

3. K8S-SLAVES ROLE

TASK COMPLETED!!!

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

A Solidity Version Manager using Sokt

Store Arrays in Azure KeyVault using DevOps ARM Templates

Key Vault Storing Arrays as Keys

Cleaning Microsoft Fakes assemblies

💥CROSS-CHAIN, UNLIMITED POTENTIAL💥

Quantum Assembly Language 101

9 Coding Guidelines you should follow in JavaScript | Better JavaScript

How to install an SSL Certificate on Android?

Failing Builds? Integrate Jenkins & Jira for a sunny day

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Saranya. S

Saranya. S

More from Medium

CS373 Spring 2022: Nathan Whyte

Python API Tutorial: Getting Started with APIs

CS373 Spring 2022: Audie Bethea

Python — Everything is object