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

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.

主站蜘蛛池模板: 嘉荫县| 榆树市| 监利县| 保定市| 集安市| 穆棱市| 临西县| 夏河县| 马龙县| 呈贡县| 西华县| 襄汾县| 辽阳市| 湟中县| 富源县| 文成县| 本溪| 乐至县| 兴国县| 临澧县| 黄山市| 台东县| 沈丘县| 乌兰浩特市| 明溪县| 彭阳县| 石门县| 台中市| 长汀县| 台山市| 凤翔县| 伽师县| 常山县| 太康县| 亳州市| 商水县| 普宁市| 都江堰市| 博野县| 交口县| 昌黎县|