Info |
---|
This article is valid for Digital Access 6.2 and later. |
...
Note |
---|
|
Prerequisites
- Two Digital Access components with services and docker swarm available
- The following ports shall be open to traffic to and from each Docker host participating on an overlay network:
- TCP port 2377 for cluster management communications
- TCP and UDP port 7946 for communication among nodes
- UDP port 4789 for overlay network traffic
- For more details refer to: https://docs.docker.com/network/overlay/
- Keep a note of IP addresses of nodes where access point is running.
...
- SSH to the node running the administration service, that is, the manager node.
Get the cluster join token by running this command. This token will be used for joining worker nodes to the manager node.
Code Block | ||
---|---|---|
| ||
sudo docker swarm join-token worker |
...
The output of the command will be like:
Panel | ||
---|---|---|
| ||
docker swarm join --token SWMTKN-1-5dxny21y4oslz87lqjzz4wj2wejy6vicjtqwq33mvqqni42ki2-1gvl9xiqcrlxuxoafesxampwq 192.168.253.139:2377 |
Stop services
Stop the running services.
...
- Update labels for each service which you want to run on worker nodes.
<node ID> is the id of the node on which the service will be running.
Code Block title Commands to update labels sudo docker node update --label-add da-policy-service=true <worker node ID> sudo docker node update --label-add da-access-point=true <worker node ID>
- Deploy your stack using this command. To run the command your working directory should be docker-compose.
Code Block title Deploy DA stack sudo docker stack deploy --compose-file docker-compose.yml -c network.yml -c versiontag.yml <your da stack name>
...
title | Update labels for each service |
---|
docker stack deploy
is the command to deploy services as stack.- compose file flag is used to provide the file name of base docker-compose file.
-c
is short for–compose-file
flag. It is used to provide override files for docker -compose.<your da stack name>
is the name of the stack. You can change it based on requirements.