$ git clone https://github.com/projectatomic/adb-atomic-developer-bundle.git $ cd adb-atomic-developer-bundle/components/centos/centos-k8s-singlenode-setup/ $ vagrant up $ vagrant ssh
Now you have a Vagrant Box with running Kubernetes cluster on it.
To setup ElasticKube follow following instructions. Disable
SELinux first, because without this ElasticKube won’t run, this is a security risk but for testing purposes you can disable it.
$ sudo setenforce 0
namespace named “kube-system”
$ cat namespace.yaml kind: "Namespace" apiVersion: "v1" metadata: name: "kube-system" labels: name: "kube-system"
$ curl -s https://elastickube.com | bash
When successfully installed, note the IP address at the end of the above command, which says “Please complete the installation here: http://10.254.177.213“.
Find the IP address of this machine
$ ip a sh eth0
Open new terminal and create a SSH port-forwarding this is done so that you can access the ElasticKube running inside the Vagrant Box.
$ ssh -L 'some-port':'IP-address-from-output':80 vagrant@'IP-address-of-VM' password: vagrant
$ ssh -L 9898:10.254.177.213:80 email@example.com
Now open browser and goto
localhost:9898 and you are good to go.