O'Reilly logo

The DevOps 2.2 Toolkit by Viktor Farcic

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating the cluster and deploying services

Just as in (almost) any other chapter, we'll start the practical part by setting up a Swarm cluster and deploying the stacks that we used previously.

All the commands from this chapter are available in the 09-self-adapting-services.sh Gist at https://gist.github.com/vfarcic/4a7253f5aaff4c2b7a55170ebbb48cbd.

chmod +x scripts/dm-swarm-09.sh./scripts/dm-swarm-09.sheval $(docker-machine env swarm-1)docker stack ls

We executed the dm-swarm-09.sh script which, in turn, created a Swarm cluster composed of Docker machines, created the networks, and deployed the stacks. The last command listed all the stacks in the cluster. We are running proxy, monitor, exporter, and go-demo stacks. Those four comprise ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required