Overview

Kubernetes is the next Evolution of Docker swarm, so in order to configure it, we have to firstly configure the Docker (just without the swarm this time) We will configure 3 servers again:

One master

Two Workers

Since I hate seeing only Debian based, I will do it in both: Ubuntu and Centos. Firstly we will be the Ubuntu. So let's get going:

Provision the VMs

You can return use the first section of the Vagrant advanced configurations or you can continue here, where we will do pretty much the same. I like wasting space :D

So let's get going with Vagrant again :)

Kubernetes Vagrantfile

As you can see, we are refering to two files here:

master-playbook.yml - Ansible Playbook for the Master node

node-playbook.yml - Ansible Playbook for the other Nodes.

Please create the following files as follows:

Master Playbook File

Master Playbook File