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

  • The DevOps 2.2 Toolkit
  • Viktor Farcic
  • 151字
  • 2021-06-24 18:46:23

Creating the cluster and deploying services

We'll start by recreating the cluster and deploying the stacks that we used in the previous chapter.

All the commands from this chapter are available in the 04-exporters.sh Gist at https://gist.github.com/vfarcic/955690ba490ce4464fab11823eb61d97.
chmod +x scripts/dm-swarm-04.sh./scripts/dm-swarm-04.sheval $(docker-machine env swarm-1)

We executed the dm-swarm-04.sh script which, in turn, created a Swarm cluster composed of Docker Machines, created the networks and deployed the stacks. Now we should wait a few moments until all the services in the monitor stack are up and running. Please use docker stack ps monitor command to confirm that the status of all the services in the stack is Running.

Finally, we'll confirm that everything is deployed correctly by opening Prometheus in a browser.

open "http://$(docker-machine ip swarm-1)/monitor"

Now the state of our cluster is the same as it was at the end of the previous chapter and we can proceed towards deploying exporters.

主站蜘蛛池模板: 偃师市| 东明县| 嘉鱼县| 申扎县| 施秉县| 万盛区| 新密市| 辰溪县| 广安市| 舞阳县| 津南区| 富民县| 开鲁县| 会宁县| 宁强县| 苏尼特右旗| 尼木县| 临漳县| 九龙县| 兰考县| 郑州市| 浦东新区| 盐亭县| 剑阁县| 海城市| 兰州市| 宁城县| 满城县| 龙游县| 治多县| 永泰县| 平武县| 调兵山市| 永胜县| 黄龙县| 讷河市| 大冶市| 灯塔市| 永春县| 瓮安县| 沙湾县|