📦 kubernetes Simple installer
docker runtime + containerd + kubernetes v1.26 + cilium
Installation became very difficult after Kubernetes stopped supporting Docker containers.
Install quickly and simply 😁
📍 Guide (both Worker Node and Master Node )
⭐️⭐️ Log in with an administrator account. ⭐️⭐️
sudo su
1. git repository clone
git clone https://github.com/ghdcksgml1/kubernetes-installer/
cd kubernetes-installer
2. docker runtime, containerd install
sh ./docker-installer.sh
3. k8s, cilium (CNI) install
sh ./k8s-installer.sh MASTER # Master Node (Control plane)
sh ./k8s-installer.sh WORKER # Worker Node
🙏 Integrating Worker Nodes with Master Nodes
Copy this part from the master node and paste it on the worker node.
kubeadm join 10.0.20.203:6443 --token wns1lm.24k4ufvdef08qq2b \
--discovery-token-ca-cert-hash sha256:fdac1fa49b40e179379ff338cfb43692913c82af516d7f19ffe61acfe6557a8e
If you see this screen, you've succeeded.
kubectl get nodes
TESTING
kubectl apply -f nginx.yaml
kubectl get pods
kubectl delete -f nginx.yaml # delete pod
🚀 Trouble Shooting
export KUBECONFIG=/etc/kubernetes/admin.conf
or
export KUBECONFIG=$HOME/.kube/config
or
sudo su
Token Expired (Regenerate)
# token regenerate
kubeadm token create --print-join-command
# kubeadm join
kubeadm join 10.0.20.203:6443 --token hr68xn.z7z1p6ltxg30rs8d --discovery-token-ca-cert-hash sha256:fdac1fa49b40e179379ff338cfb43692913c82af516d7f19ffe61acfe6557a8e