...
From the k8smaster1 under the test account issue the following command:
> kubectl get nodes
...
Setup Worker Nodes
Perform the following steps on all of the worker nodes (k8sworker1, k8sworker2, k8sworker3).
Set the hostname
> sudo su
> hostnamectl set-hostname k8sworker1
> hostnamectl
> reboot
Join the Cluster
From the worker nodes issue the following command. If your token has expired from you may need to create a new one.
> sudo su
> kubeadm join k8slb.ott.dev.intra:6443 --token ktemf3.pshisb9lspt1i40i --discovery-token-ca-cert-hash sha256:1e737466a59f00083a4ddf43c9fcf446a5b1cee8346afd1565d341fe5dee2c46
...
> kubectl get nodes
Code Block |
---|
NAME STATUS ROLES AGE VERSION
k8smaster1 Ready master 27m v1.13.4
k8smaster2 Ready master 8m43s v1.13.4
k8smaster3 Ready master 7m56s v1.13.4
k8sworker1 Ready <none> 71s v1.13.4
k8sworker2 Ready <none> 63s v1.13.4
k8sworker3 Ready <none> 25s v1.13.4 |
Install Dashboard
From the master node:
...