官术网_书友最值得收藏!

Joining Linux worker nodes to the cluster

First, we add the DTR node, which is a worker node. The UCP web interface provides a GUI to format important command-line operations, including joining nodes to the cluster and installing DTR. While we still need to run these commands from the command line, the GUI tool helps us to correctly set the parameters. To join nodes, we first select the Nodes menu item under Shared Resources and click Add Node, as shown in Figure 7. Then, on the next screen, we make sure LINUX and WORKER are selected and copy the command to the clipboard, as shown in Figure 8:

Figure 7: Universal Control Plane Nodes

The following is the Add Node dialog box in the Docker UCP Web UI. Select LINUX and WORKER, then click on the copy button:

Figure 8: Universal Control Plane Add Linux Node

To join the DTR node, we SSH to the node and execute the command we copied from the UCP Add Node screen in Figure 8. Make sure you use your UCP's token, not the following example: 

DTR-node$ docker swarm join --token SWMTKN-1-3ggoagvdn7jm27pflayqj3z7zmylz72fix6jqv0vrh4giv9785-xxxxxxxxxxxxxxxxxxxxx 172.31.0.170:2377

This node joined a swarm as a worker.

主站蜘蛛池模板: 得荣县| 新平| 遵义市| 曲阜市| 内乡县| 永德县| 新余市| 阿荣旗| 南陵县| 沁源县| 吉安县| 平安县| 化州市| 静海县| 普格县| 沂源县| 都兰县| 莲花县| 神木县| 广元市| 澄迈县| 剑阁县| 丰台区| 蒙山县| 卓资县| 富蕴县| 集安市| 富蕴县| 临夏市| 藁城市| 皮山县| 河间市| 内江市| 筠连县| 阳原县| 交城县| 隆林| 运城市| 高邑县| 浪卡子县| 景东|