setting up a Container Cluster

Using docker and flannel it is easy to set up a cluster of docker hosts with automated container interconnectivity. So what will it be?

Docker should be known by everyone: it provides containers on Linux hosts, separating different aspects of the operating system for a set of processes, what these processes are could be described by the docker container format. If you run a set of containers on different hosts, you may want to have network connectivity between these containers. And that is were flannel jumps in by providing an overlay network that connects containers across hosts.

As we love Vagrant I used it for providing some virtual machines running RHEL7 to me, these machine will be docker hosts and networking on these hosts will be managed by flannel. As a dependency etc is installed (and some other stuff). One VM will be the kubernetes master and additional n hosts will be minions.

For a details overview of the installation see a blog post by on of my colleagues: Flannel and Docker on Fedora – Getting Started

What I added to this basic installation is a Vagrant powered environment and an automated installation procedure driven by Ansible. What it will be in a few weeks: an infrastructure to [install OpenShift Origin 3 on CentOS][7]. This will rapidly set up an development environment for you ;)

To set up an environment by yourself try the following steps.

git clone https://github.com/goern/openshift-el.git
cd openshift-el
vagrant up
vagrant ssh master

[7]: https://github.com/goern/openshift-el