Installing the tools
To be able to manage Kubernetes cluster on Amazon EC2, we will need to install some command-line tools first. Of course, using the Amazon EC2 web interface is also possible. Spinning up a cluster is quite a complicated process; you will need to have a user with proper access and permissions, storage for a cluster state, EC2 instances to run your Kubernetes master and worker nodes, and so on. Doing everything manually is possible, but can be time consuming and error prone. Luckily, we have tools that can automate most of the things for us, this will be the AWS command-line client (awscli
) and kops
, Kubernetes operations, production Grade K8s installation, upgrades, and management. There are some requirements though. Kops
runs on Linux and macOS, it's written in Go, like Docker. The awscli
is written in Python, so let's focus on Python installation first.
Python and PIP
To run the AWS command-line tools (awscli
), we will need python3
present on our machine.
It may be present...