...
Repeat for all VMs
Initialize Master
> sudo su
> kubeadm > kubeadm init
Code Block |
---|
... Your Kubernetes master has initialized successfully! To start using your cluster, you need to run the following as a regular user: mkdir -p $HOME/.kube sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config sudo chown $(id -u):$(id -g) $HOME/.kube/config You should now deploy a pod network to the cluster. Run "kubectl apply -f [podnetwork].yaml" with one of the options listed at: https://kubernetes.io/docs/concepts/cluster-administration/addons/ You can now join any number of machines by running the following on each node as root: kubeadm join 10.0.2.100:6443 --token 8616y5.99svelizti79sgyw --discovery-token-ca-cert-hash sha256:b3631a1b774382f980ac6e8e881241f59eccc5ff250ffc948e001e9aff40cbb7 |
...