kubeadm
kubeadm
kubeadm
is used to build clusters.
Full process to create a cluster
The basic steps to join other nodes to the cluster:
- Retrieve a token and a SHA256 hash returned by:
# on to be master node
kubeadm init
-
Once the master is initialized, we would apply a network plugin (e.g.
calico
). -
Create a network for IP-per-Pod criteria. For example, using Weave:
kubectl create -f https://git.io/weave-kube
- Run the following command on the worker nodes:
# on worker node
kubeadm join --token $token $master_node_ip