![]() When the execution of the vagrant up command is finished, we’ll have a commonly used Docker Swarm cluster configuration. Vagrant up swarm-master swarm-node-1 swarm-node-2 proxy The commands that will create and provision the VMs are as follows. Everything else will be provisioned automatically. Please make sure that both Vagrant and Git are installed on your laptop. The principles explained here are the same no matter how you setup your Docker hosts. I chose Vagrant over Docker Machine so that everyone can use the same commands no matter whether host OS is Linux, OS X, or Windows. ![]() ![]() The only requirements for the examples that follow are Vagrant and Git. Since I don’t know whether you’re a Mac, Windows, or Linux user, we’ll create a few VMs running Ubuntu and use them to simulate a Docker Swarm cluster. We’ll explore internal and external networking, see how DNS fits into the picture, discuss use cases that might be a good fit, and finish with pros and cons. That is both a reason for celebration and an opportunity to explore Docker networking and DNS. What is new, starting from the release 1.11, is the addition of DNS round-robin load balancing. Docker SDN ( Software Defined Network) already exists for quite some time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |