In this article we’ll see how simple it is to install Kubernetes onto some Ubuntu hosts using Pharos.
Pharos is a Certified Kubernetes with all batteries included. It is powered by the latest upstream version of Kubernetes kernel and include tools for cluster lifecycle management.
You will need at least one master (ideally 3) and at least one worker. For our simple demonstration we create three masters and worker using instances and images shown below: -
Master image: Ubuntu-Bionic
Typically on a bastion instance in the cluster, where you have access to the compute instances, install pharos like this: -
You provide the instance details and their roles in a a YAML file called
cluster.yaml). You must be able to ssh to the instances you’ve created - and you define ssh criteria in the cluster definition. In it, identify your machines, the ssh key and the machine types.
A typical 3 master 1 worker cluster with the name “im-demo” and the label “purpose:application” on the worker instance looks like this: -
Now use pharos to create the cluster.
A simple 3-node master and single worker node shouldn’t take more than 8-10 minutes: -
And, as instructed, you can craft a kubeconfig file with the command illustrated at the end of the installation and use that with kubectl: -