Open jaredvacanti opened 5 years ago
You should be able to trigger an update
operation to set the role from manager
to worker
with:
client.update_node
if you're using the low-level API (APIClient).client.nodes.get(node_id).update
if you're using the high-level API (DockerClient).
When managing a docker swarm cluster using the python sdk, how should nodes be promoted or demoted to manager or worker nodes in the swarm? Does this functionality currently exist?
This is usually done before cleanup when removing a manger node, i.e. demote to worker and remove. There is currently an option to force remove using the SDK - is there a way to gracefully cleanup?