Project created as set of support tools to deploy kazoo solution on docker environment. My needs:
- need tools to deploy kazoo in Amazon cloud;
- required use Linux dist that have docker out of box.
To cover this reqirments i selected CoreOS
dist and wrote this tools.
Project ready to deploy kazoo as cluster with zones and as All in one
with one zone
To start
- need download
Container Linux Config Transpiler
utility and play folder included into your PATH environment variable. On my dist Fedora this~/.local/bin/
folder; - download and edit
config.yaml
file
curl -O https://raw.githubusercontent.com/sergey-safarov/kazoo-configs-docker/master/config.yaml
vi config.yaml
- generate
ignition
data
ct -in-file config.yaml
- copy
ignition
data into AmazonCoreOS instance
creation dialog asuser-data
- Create new
CoreOS
instance and wait when systemd booted.
On first Amazon instance need to create docker swarm master
node
docker swarm init
On all next nodes need to join to created docker swarm cluster
using token generatd on first master node. Additonal nodes is created as workers
.
If you need, then you can switch node from worker
to master
.
Then need to create docker swam network
docker network create --driver overlay --attachable --subnet 192.168.30.0/24 --gateway 192.168.30.1 kazoo
/usr/bin/git clone https://github.com/sergey-safarov/kazoo-configs-core.git /etc/kazoo/kazoo-configs-core
/usr/bin/git clone https://github.com/sergey-safarov/kazoo-configs-freeswitch.git /etc/kazoo/kazoo-configs-freeswitch
/usr/bin/git clone https://github.com/sergey-safarov/kazoo-configs-haproxy.git /etc/kazoo/kazoo-configs-haproxy
/usr/bin/git clone https://github.com/sergey-safarov/kazoo-configs-couchdb.git /etc/kazoo/kazoo-configs-couchdb
/usr/bin/git clone https://github.com/sergey-safarov/kazoo-configs-kamailio.git /etc/kazoo/kazoo-configs-kamailio