-
Book Overview & Buying
-
Table Of Contents
Native Docker Clustering with Swarm
By :
In this tutorial, we'll create the infrastructure on AWS. Ideally, for a production environment, you would setup three or five Swarm managers and some workers, and eventually add new worker nodes later depending on the load.
Here we'll setup a Swarm cluster with three Swarm managers, six Swarm workers and one Flocker control node with Machine, and won't add new workers.
Installing Flocker requires several manual steps, which can be automated (as we'll see). So, to make the example as less complex as possible, we'll run all these commands initially, in linear order, without repeating procedures to increase the system capacity.
If you don't like Ansible, you can easily adapt the flow to your favorite tool, be it Puppet, Salt, Chef or others.
For simplicity, we will install our lab using an SSH key generated ad hoc, and we'll install Docker Machines with this key copied to the host in authorized_keys. The goal is to have a unique key to authenticate Ansible later, that we'll...
Change the font size
Change margin width
Change background colour