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 manager node.
Remove label for all services which are not required on this node.
Code Block title Remove label sudo docker node update --label-rm da-access-point <nodeid>
- Verify if all nodes are part of cluster by running this command.
Code Block title Verify if all nodes are part of cluster sudo docker node ls
Identify nodes ID, master and worker where the service will be distributed.
Code Block title Identify nodes sudo docker node inspect --format '{{ .Status }}' h9u7iiifi6sr85zyszu8xo54l
...
Output: {ready 192.168.86.129} - IP address will help to identify the DA node
...
Update labels for each service
- 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>
Expand | ||
---|---|---|
| ||
|
...