-
Edit edit the hosts file with your server IP
-
Edit The 0_host_config.sh file with your server IP and Hostname
-
Then execute: ansible-playbook one_hostname-playbook.yaml
-
Then execute: ansible-playbook two_disable-playbook.yaml
Note: This Will Reboot The Server
-
Then execute: ansible-playbook three_kubernetes-playbook.yaml
-
Login As Root
kubeadm init
- mkdir -p $HOME/.kube
- sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
- sudo chown
$(id -u):$ (id -g) $HOME/.kube/config - kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"
- sudo kubeadm token create --print-join-command
- Copy The Token And Apply It On All The Worker Node Using
References
[+] https://shehuawwal.com/building-a-kubernetes-cluster-from-scratch-with-kubeadm/