Dockerizing Zevenet CE

POSTED ON 18 July, 2017

Overview

The goal of this article is to explain how to quickly deploy a Zevenet Load Balancer Community Edition using Docker containers. Docker is a popular virtualization software based on resource isolation features of the Linux kernel such as cgroups, kernel namespaces, overlayFS… to allow independent “containers” to run within a single Linux instance, avoiding the overhead of starting and maintaining complete virtual machines.

Conventions

Spite we do not support Docker issues, we include here some notes as an example of installation on latest Debian buster

Installation procedure

 

Install Docker

Firstly we will install Docker in the host machine adding some dependencies and the official docker repository and its gpg key.

apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
apt-get update && apt-get install docker-ce

 

Download the Zevenet Docker Image

Next step is to download the latest ZLB image from our repository

docker pull zevenet/zlb

 

Run a Zevenet Container

Finally we will start a new container exposing the GUI port

docker run --name zlb -p 444:444 -itd zevenet/zlb /bin/bash

Access to your new Zevenet Container

After that last step we will be able to access the Zevenet Load Balancer Grafical User Interface using any web browser that way:

https://[host_public_ip or domain]:444

User: root
Password: admin

For security reasons change the default password.

If you plan to create farms you will need to expose the correspondig ports in the “docker run” command. For example, to run a web server backend on port 80 and 443 your “docker run” command would be:

docker run --cap-add=NET_ADMIN --name zlb -p 444:444 -p 80:80 -p 443:443 -itd zevenet/zlb /bin/bash

 

Share on:

Documentation under the terms of the GNU Free Documentation License.

Was this article helpful?

Related Articles