Lab 1: Building A Kubernetes Cluster With Kubeadm: Description
Lab 1: Building A Kubernetes Cluster With Kubeadm: Description
Description
A Kubernetes cluster is a powerful tool for managing containers in a highly-available
manner. Kubeadm greatly simplifies the process of setting up a simple cluster. In this
hands-on lab, you will build your own working Kubernetes cluster using Kubeadm.
3. mkdir -p $HOME/.kube
4. sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
Take note that the kubeadm init command printed a long kubeadm join command to the
screen. You will need that kubeadm join command in the next step!
5. Run the following commmand on the Kube master node to verify it is up and running:
kubectl version
This command should return both a Client Version and a Server Version.
1. Copy the kubeadm join command that was printed by the kubeadm init command
earlier, with the token and hash. Run this command on both worker nodes, but make
sure you add sudo in front of it:
2. Now, on the Kube master node, make sure your nodes joined the cluster successfully:
Verify that all three of your nodes are listed. It will look something like this:
1. Copy the kubeadm join command that was printed by the kubeadm init command
earlier, with the token and hash. Run this command on both worker nodes, but make
sure you add sudo in front of it:
2. Now, on the Kube master node, make sure your nodes joined the cluster successfully:
Verify that all three of your nodes are listed. It will look something like this:
Note that the nodes are expected to be in the NotReady state for now.