Deploying multinode clusters on AWS using the Ansible playbook
To deploy a Kubernetes we will need two servers. In the first server, all components of Master will be installed, whereas in second server, all the component of node will be installed.
Note
This setup is not for production purpose, because it won't provide a node-level auto-scaling feature. This can be used for Devlopment or QA purpose. The Ansible playbook is well tested and got LGTM by Kubernetes Maintainers.
Getting ready
Before running a playbook on your local machine to setup Kubernetes cluster, you should have the pre-requisites ready:
- Install Ansible on the machine from where ever you are comfortable to run the Ansible playbook.
- Create an IAM user and attach EC2FullAccess to that user. Then, download the access key and secret key, and configure the keys on your machine from where you will run the Ansible playbook. The alternative to this is you can attach an IAM role to the server, which should have EC2FullAccess Persmission...