Home > Net >  Kubernetes - Add a Windows node to a Windows-based control plane
Kubernetes - Add a Windows node to a Windows-based control plane

Time:06-18

I have installed Docker Desktop and Kubernetes on a Windows machine.
When i run the kubectl get nodes command, I get the following output:

NAME             STATUS   ROLES           AGE    VERSION
docker-desktop   Ready    control-plane   2d1h   v1.24.0

So my cluster/control-plane is running properly.

I have a second Windows machine on the same network (in fact its a VM) and I'm trying to add this second machine to the existing cluster.
From what I've seen the control-plane node has to have kubeadm installed but it seems it's only available for Linux.

Is there another tool for Windows-based clusters or is it not possible to do this?

CodePudding user response:

The other windows machine can be joined into cluster. Please refer Kubernetes documentation for windows and install kubeadm and run kubeadm join ,which will bootstrap and join the node into kubernetes cluster.

CodePudding user response:

It turns out that the control-plane can only run on a Linux node.
I suspect that the output from the kubectl get nodes command was from a control-plane running on the WSL that Docker-Desktop uses.

So the only option for running a master node on Windows, is to run in a Linux VM.

  • Related