We are using kong-konga-compose to deploy the Cluster Kong with Konga.
Preparation: Execute below commands on All nodes.
systemctl stop firewalld
systemctl disable firewalld
systemctl status firewalld
sed -i s/^SELINUX=.*$/SELINUX=permissive/ /etc/selinux/config
setenforce 0
yum update -y
yum install -y https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm
sudo curl https://download.docker.com/linux/centos/docker-ce.repo -o /etc/yum.repos.d/docker-ce.repo
sudo yum makecache
sudo dnf -y install docker-ce
sudo dnf -y install git
sudo systemctl enable --now docker
sudo curl -L https://github.com/docker/compose/releases/download/1.25.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose && ln -sv /usr/local/bin/docker-compose /usr/bin/docker-compose
sudo docker-compose --version
sudo docker --version
in node01:
docker swarm init --advertise-addr MASTERNODEIP
OUTPUT:
docker swarm join --token SWMTKN-1-1t1u0xijip6l33wdtt7jpq51blwx0hx3t54088xa4bxjy3yx42-90lf5b4nyyw4stbvcqyrde9sf MASTERNODEIP:2377
in node02:
# The command you find in MASTER NODE.
docker swarm join --token SWMTKN-1-1t1u0xijip6l33wdtt7jpq51blwx0hx3t54088xa4bxjy3yx42-90lf5b4nyyw4stbvcqyrde9sf MASTERNODEIP:2377
in node01:
docker node ls
ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS ENGINE VERSION
m55wcdrkq0ckmtovuxwsjvgl1 * master01 Ready Active Leader 19.03.8
e9igg0l9tru83ygoys5qcpjv2 node01 Ready Active 19.03.8
git clone https://github.com/jaganthoutam/kong-konga-compose.git
cd kong-konga-compose
docker stack deploy --compose-file=docker-compose-swarm.yaml kong
#Check Services
docker service ls
ID NAME MODE REPLICAS IMAGE PORTS
ahucq8qru2xx kong_kong replicated 1/1 kong:1.4.3 *:8000-8001->8000-8001/tcp, *:8443->8443/tcp
bhf0tdd36isg kong_kong-database replicated 1/1 postgres:9.6.11-alpine
tij6peru7tb8 kong_kong-migration replicated 0/1 kong:1.4.3
n0gaj0l6jyac kong_konga replicated 1/1 pantsel/konga:latest *:1337->1337/tcp
83q1eybkhvvy kong_konga-database replicated 1/1 mongo:4.1.5