# 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
setup.ilm.enabled: false #Set ilm to False
setup.template.name: "k8s-dev" #Create Custom Template
setup.template.pattern: "k8s-dev-*" #Create Custom Template pattern
setup.template.settings:
index.number_of_shards: 1 #Set number_of_shards 1, ONLY if you have ONE NODE ES
index.number_of_replicas: 0#Set number_of_replicas 1, ONLY if you have ONE NODE ES
output.elasticsearch:
hosts: ['192.168.1.142:9200']
index: "k8s-dev-%{+yyyy.MM.dd}" #Set k8s-dev-2020.01.01 as Index name