Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Initialize Master (using Flannel)

> sudo kubeadm init --apiserver-advertise-address <IP ADDRESS> --pod-network-cidr=10.244.0.0/16

> sudo kubeadm init --config=kubeadm-config.yaml 

...

> kubectl taint nodes --all node-role.kubernetes.io/master-


Copy Certificates to Other Master Nodes

> sudo su

> vi copyCertsToMasters.sh

...

> ./copyCertsToMasters.sh

...


Setup Other Master Nodes

Perform the following steps on the other master nodes (k8smaster2 and k8smaster3).

Set the hostname

> sudo su
> hostnamectl set-hostname k8smaster1
> hostnamectl

> reboot

Move Certificates

> ssh test@<ip of master node> ssh test@172.20.233.182

> sudo su

> vi moveFilesFromMaster.sh

...

> ./moveFilesFromMaster.sh

Join the

...

From k8smaster2 and k8smaster3  perform the following steps:

Set the hostname

> sudo hostnamectl set-hostname k8smaster1
> sudo hostnamectl

Join the Cluster

> sudo su

> kubeadm join k8slb.ott.dev.intra:6443 --token 80g665.bhpvg9w5inpgeimt --discovery-token-ca-cert-hash sha256:2b37c8b0ce18cc9710eb53c7eb7ece209645b02bd906da2f09f26b8f1d29fb9e --experimental-control-plane

...

From the k8smaster1 under the test account issue the following command:

> kubectl get pod -n kube-system -wnodes


Join the Worker Nodes


From the worker nodes issue the following command. If your token has expired from you may need to create a new one.

...