skip to Main Content

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?

3

Answers


  1. Chosen as BEST ANSWER

    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.


  2. 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.

    Login or Signup to reply.
  3. Below are details of docker desktop from docker documentation.

    Docker Desktop includes a standalone Kubernetes server and client, as well as Docker CLI integration that runs on your machine. The Kubernetes server runs locally within your Docker instance, is not configurable, and is a single-node cluster..

    You can refer kubernetes documentation and create kubernetes cluster with all your windows machines.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search