Setting up ElasticKube on CentOS

ElasticKube is ‘Enterprise container management for Kubernetes’ an option to various other open-source software projects like Nulecule, LocalKube, Ansible, etc. but only supports Kubernetes.

AAEAAQAAAAAAAAUNAAAAJDE0ZjJiNTkxLTFjNzQtNDZjYy1hY2JhLTZiZTJkMjRkYmE4Ng

You need a working Kubernetes cluster to setup ElasticKube on it. Easiest way to create a single node Kubernetes cluster, follow the steps.

$ 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.                                             m7S2-kubernetes

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

Create namespace named “kube-system”

$ cat namespace.yaml
kind: "Namespace"
apiVersion: "v1"
metadata:
  name: "kube-system"
  labels:
    name: "kube-system"

Install ElasticKube

$ 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

e.g.

$ ssh -L 9898:10.254.177.213:80 vagrant@192.168.121.24

Now open browser and goto localhost:9898 and you are good to go.

 

Ref:

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s