Switching from swarm to kubernetes for a node while using the mixed orchestrator type

0 votes

I'm using the Mixed orchestrator type.How to switch from swarm to kubernetes for a node?

Jul 5, 2019 in Docker by Sam
• 6,260 points
384 views

1 answer to this question.

0 votes

To change the orchestrator type for a node from Swarm to Kubernetes:

docker node update --label-add com.docker.ucp.orchestrator.kubernetes=true <node-id>
docker node update --label-rm com.docker.ucp.orchestrator.swarm <node-id>

UCP (Universal control panel) detects the node label change and updates the Kubernetes node accordingly.

Check the value of the orchestrator label by inspecting the node:

docker node inspect <node-id> | grep -i orchestrator

The docker node inspect command returns the node’s configuration, including the orchestrator:

"com.docker.ucp.orchestrator.kubernetes": "true"
answered Jul 5, 2019 by Sirajul
• 58,990 points

Related Questions In Docker

0 votes
1 answer

How to remove a worker node from the docker swarm cluster?

Hi@akhtar, To remove a worker node from the ...READ MORE

answered Dec 24, 2020 in Docker by MD
• 95,060 points
105 views
+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
1,452 views
+2 votes
1 answer
0 votes
2 answers