How to add a node as a manager in swarm cluster

+1 vote
I am having a swarm cluster in which I have connected four machines as a worker and one machine as a Manager. I want to make my cluster highly available for which I have to add more managers to my cluster.

I don't know how to achieve that. Can anyone tell that if there is a possible way to join the node as a manager in my cluster?

Can anyone resolve my query?

Thanks.
Dec 10, 2018 in DevOps & Agile by Shubham
• 1,000 points
515 views

1 answer to this question.

+1 vote

Here is what you can try and your work will be done.

Use the command mentioned below to generate a token.

docker swarm join-token manager

This will generate a token for you which you have to copy and paste on those machines which is to be added as Swarm manager.

 docker swarm join \
    --token SWMTKN-1-61ztec5kyafptydic6jfc1i33t37flcl4nuipzcusor96k7kby-5vy9t8u35tuqm7vh67lrz9xp6 \
    192.168.99.100:2377

By pasting this token over those machine, you'll be able to add them as manager.

I hope the above information will resolve your query. 


answered Dec 10, 2018 by Damon Salvatore
• 5,980 points

Related Questions In DevOps & Agile

0 votes
1 answer

How to add Node Exporter in Prometheus server?

Hi@akhtar, To add Node Exporter in Prometheus server, you have to ...READ MORE

answered May 28, 2020 in DevOps & Agile by MD
• 95,440 points
2,290 views
0 votes
1 answer

How to a run deployed app in Docker for Windows?

To deploy an ASP.NET web application to ...READ MORE

answered Aug 30, 2018 in DevOps & Agile by Tyrion anex
• 8,700 points
908 views
+2 votes
6 answers

How to add a volume to Docker, but also exclude a sub-folder?

Here is what you can try if ...READ MORE

answered Nov 21, 2018 in DevOps & Agile by Shubham
• 1,000 points
24,624 views
0 votes
1 answer
+2 votes
1 answer
+5 votes
7 answers

Docker swarm vs kubernetes

Swarm is easy handling while kn8 is ...READ MORE

answered Aug 27, 2018 in Docker by Mahesh Ajmeria
3,189 views
+4 votes
1 answer

How to orchestrate a multi-tier web-app over swarm cluster ?

I understand from your query that you ...READ MORE

answered Dec 11, 2018 in DevOps & Agile by Damon Salvatore
• 5,980 points
990 views
0 votes
1 answer

How to give a name to an image in Dockerfile ?

This needs to be done in your ...READ MORE

answered Nov 17, 2018 in DevOps & Agile by Damon Salvatore
• 5,980 points
1,264 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP