Create a windows kubernetes worker node
Kubernetes control planes are set to only run on Linux distributions, but your organization runs some of its docker images using a windows host container. Are you out of luck? NO! Read on to find out exactly how to set up a windows worker node in Kubernetes
Install Windows daemons for linux
The control plane, which is running under a Linux host, will need a windows daemon for linux installed. To do so you must do the following:
1. curl -L https://github.com/kubernetes-sigs/sig-windows-tools/releases/latest/download/kube-proxy.yml | sed 's/VERSION/v1.20.0/g' | kubectl apply -f -
2. kubectl apply -f https://github.com/kubernetes-sigs/sig-windows-tools/releases/latest/download/flannel-overlay.yml
Install Windows Worker Node
The worker node that is running docker containers using a Windows Host will need to be running Windows Server 2019 or better.
- Install chocolatey:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install kubernetes-cli
- Install wins, kubelet, and kubeadm:
curl.exe -LO https://github.com/kubernetes-sigs/sig-windows-tools/releases/latest/download/PrepareNode.ps1
.\PrepareNode.ps1 -KubernetesVersion v1.20.0
Issue kubadm join command from previous step.
Comments
Post a Comment