April 2018
Intermediate to advanced
468 pages
14h 34m
English
Now we can add worker nodes to the cluster using the token we got earlier. On each node, run the following command (don't forget sudo) with the tokens you got when initializing Kubernetes on the master node:
sudo kubeadm join --token <<token>> --discovery-token-ca-cert-hash <<discovery token>> --ignore-preflight-errors=all
At the time of writing (using Kubernetes 1.10) some preflight checks fail, but this is a false negative. Everything is actually fine, and you can skip those preflight checks by adding --ignore-preflight-errors=all. I hope that when you read the book, these wrinkles will be ironed out. You should see the following:
[discovery] Trying to connect to API Server "192.168.77.10:6443" [discovery] Created ...
Read now
Unlock full access