Difference between revisions of "Installing Kubernetes with Ansible on AWS"
Line 15: | Line 15: | ||
When creating these instances, make sure that you create or select the same Identity file (<code>.pem</code> file) for all instances of the same cluster. This will significantly reduce the complexity of installation. | When creating these instances, make sure that you create or select the same Identity file (<code>.pem</code> file) for all instances of the same cluster. This will significantly reduce the complexity of installation. | ||
==Make sure | ==Make sure Ansible is installed== | ||
Install [[Ansible]] on the machine that will run [[Ansible]] to install the cluster. You may follow this procedure: [https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#installing-and-upgrading-ansible-with-pip Installing Ansible]. If you already installed <code>Python 3.0</code> and <code>pip3</code>, launch the following instruction in your terminal should work: | Install [[Ansible]] on the machine that will run [[Ansible]] to install the cluster. You may follow this procedure: [https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#installing-and-upgrading-ansible-with-pip Installing Ansible]. If you already installed <code>Python 3.0</code> and <code>pip3</code>, launch the following instruction in your terminal should work: | ||
pip3 install ansible | pip3 install ansible |
Revision as of 07:40, 3 August 2021
This article explains how to install Kubernetes using Ansible on AWS's Ubuntu 20.04 computing clusters.
Set up at least two machines on AWS
The first task is to create two EC2 instances that matches Kubernetes Cluster minimal configuration:
The master node must have at least 2 CPU cores, 2 Gb of memory. The worker node (slave) should have at least 1 CPU core and 2 Gb of memory.
Set the right Security Groups
{{#lst:Input/K8s Installation/Security Groups|Security Groups}}
Ideally, one could first create a Security Group, and name it K8s Sec Grp
, then, just create two or more instances of EC2, and select the said security group during the creation cycle.
Use the same Signature File
When creating these instances, make sure that you create or select the same Identity file (.pem
file) for all instances of the same cluster. This will significantly reduce the complexity of installation.
Make sure Ansible is installed
Install Ansible on the machine that will run Ansible to install the cluster. You may follow this procedure: Installing Ansible. If you already installed Python 3.0
and pip3
, launch the following instruction in your terminal should work:
pip3 install ansible