Kubernetes. Part 4: Joining Windows Server 2019 to a Kubernetes cluster as a worker node

All parts of the series “Kubernetes”

First, we need to download 3 files:

  1. Kubeclustervxlan.json
  2. KubeCluster.ps1
  3. KubeClusterHelper.psm1

Now let's edit the Kubeclustervxlan.json file

    "ControlPlane" : {  // Contains values associated with Kubernetes control-plane ("Master") node
        "IpAddress" : "kubemasterIP",  // IP address of control-plane ("Master") node
        "Username" : "localadmin",  // Username on control-plane ("Master") node with remote SSH access  
        "KubeadmToken" : "token",  // Kubeadm bootstrap token
        "KubeadmCAHash" : "discovery-token-ca-cert-hash"  // Kubeadm CA key hash
    },

And the last 2 incantations:

.\KubeCluster.ps1 -ConfigFile .\Kubeclustervxlan.json -install 
.\KubeCluster.ps1 -ConfigFile .\Kubeclustervxlan.json -join

The result of all this wizardry will be printed on the screen:

  1. either everything is fine and we've reached our goal;
  2. or something went wrong.

PS: At the time of writing, flannel was at version 0.11.0 and had a bug with liveness/readiness probes. As a fix, you can use what is described here.

Only registered users can leave a comment.

Sign in or register to leave a comment.