This Repo will give you a ready setup of Kubernetes multi-node cluster you just need to run it using ansible
Create ansible roles to setup multinode kubernetes cluster over AWS cloud.
Install Following packages in controller node.
Using pip to install following packages.
After that, you need user credentials for accessing AWS. As ec2.py
make an API call to AWS for your requirement. so we need to set 2 environment variable in the following file.
Create one file at '~/' with name ".boto"
// add following data in file
[Credentials]
aws_access_key_id = <your_access_key_here>
aws_secret_access_key = <your_secret_key_here>
Download both ec2 file.
Both File should be execuatable
chmod +x file name (ec2.ini and ec2.py)
inventory
as inventory directory in Ansible.cfgEC2.yml
file to provision instance using EC2 role.kubernetes_cluster.yml
to Configure kubernetes cluster over AWS cloud internally they useing respective roles.
./ec2.py