<div dir="ltr">Hi.<div><br></div><div>I have done it by checking the ip address of the master. The current state of</div><div>the heat drivers doesn't allow the distinction between master > 1 or</div><div>master=1.</div><div><br></div><div>Spyros</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 31 January 2017 at 16:33, Kevin Lefevre <span dir="ltr"><<a href="mailto:lefevre.kevin@gmail.com" target="_blank">lefevre.kevin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, Docker 1.13 has been released with several improvements that brings<br>
swarm mode principles closer to Kubernetes such as docker-compose<br>
service swarm mode.<br>
<br>
I'd like to implement a v2 swarm template. I don't know if it's already<br>
been discussed.<br>
<br>
Swarm mode is a bit different but a lot simpler to deploy than Swarm<br>
Legacy.<br>
<br>
In Kubernetes you can deploy multiples masters at the same time but in<br>
swarm mode you have to:<br>
- bootstrap a first docker node<br>
- run docker swarm init<br>
- get a token (worker or manager)<br>
- bootstrap other worker<br>
- use manager or worker token depending manager count.<br>
<br>
I don't know what is the best way to do so in HEAT. I'm sure there are<br>
multiple options (I'm not an expert in HEAT i don't know if they are<br>
feasible) :<br>
<br>
- Bootstrap a first server<br>
- Wait for it to ready, run docker swarm init, get both manager and<br>
worker tokens<br>
- if manager count >1, we can bootstrap another resource group for<br>
extra managers which will use a manager token.<br>
- Bootstrap the rest of the worker and use a worker token.<br>
<br>
The difficulty is to handle multiples master properly, i'd like to hear<br>
your ideas about that.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Kevin Lefevre<br>
<br>
______________________________<wbr>______________________________<wbr>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.<wbr>openstack.org?subject:<wbr>unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-dev</a><br>
</font></span></blockquote></div><br></div>