master_role_of_mnkc_on_aws

Role Name

This is a role which will configure Master Node of a Multi Node Kubernetes Cluster on Public Cloud. Here, I have used AWS as my Public Cloud Provider.

Requirements

Requirements for these are: 1.) Pre-created Instanes 2.) 2 files: ec2.py script and ec2.ini file 3.) Public Key, attached to these Instances

Role Variables

There are various Variables used in this role: docker_repo_url: This is used to take Docker Repo URL docker_pkg: This will take the name of the docker package docker_svc: Service Name of Docker k8s_repo_url: Kubernetes Repo URL k8s_gpg_url: Gpgkey URL, may be used in OS other than Centos(like Redhat). k8s_repo_pkg: List of Kubernetes Packages to install docker_driver_path: Path of file to change the driver warning2_pkg: iproute-tc Package cidr_range: Range of Pods k8s_conf_path: Kubernetes Configuration Path k8s_dir_path: Kubernetes Directory Path flannel_url: Url to install flannel file_dest: Path to file in which token will be stored.

Dependencies

No dependencies Required.

Example Playbook

  • hosts: tag_Name_Instance become: yes ignore_errors: yes vars_files: - vars.yml roles: - master

License

MIT

About me

I am Akhilesh Jain, who has created this role. To understand more about this role and this complete Task, visit the following platforms of mine:

LinkedIN Profile: https://www.linkedin.com/in/akjain9221/ Medium Profile: https://akhileshjain9221.medium.com/ Complete Project URL on GIthub: https://github.com/akhilesh-jain1729/Arth_Tasks/tree/main/Arth_Task19

--> To use this role efficiently, Follow the Steps and run playbooks accordingly

  1. ansible-playbook configure-cluster.yml
  2. ansible-playbook slave_token.yml
About

This role will configure your VM/Instance into a Master Node of Multi Node Kubernetes Cluster. This role can be used on AMazon Linux 2 also.

Install
ansible-galaxy install akhilesh-jain1729/Master-Role-of-MNKC-on-AWS
GitHub repository
License
Unknown
Downloads
19
Owner
I am a Student currently persuing UnderGraduation in Computer Science Stream.