1

Imagine you want to reset your Docker swarm from time to time.

How do you distribute join tokens to those zillions of nodes? How much automation is possible here?

DFord
  • 135
  • 5
Ta Mu
  • 6,792
  • 5
  • 43
  • 83

2 Answers2

2

Have the Swarm Manager place the worker join token in a Key/Value store. We use AWS Parameter Store but I believe Consul would be another option (I don't use it).

Each node can then retrieve the token while it is bootstrapping.

swysocki
  • 858
  • 5
  • 8
1

Simple answer with infrastructure as code, you don't rejoin nodes, you trash old nodes and bring fresh nodes to join the cluster.

Tensibai
  • 11,416
  • 2
  • 37
  • 63