Skip to content

docker runtime + containerd + kubernetes v1.26 + cilium

Notifications You must be signed in to change notification settings

ghdcksgml1/kubernetes-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📦 kubernetes Simple installer

docker runtime + containerd + kubernetes v1.26 + cilium

스크린샷 2023-05-12 오후 4 06 11

Installation became very difficult after Kubernetes stopped supporting Docker containers.
Install quickly and simply 😁

스크린샷 2023-05-12 오후 3 06 45

📍 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

스크린샷 2023-05-12 오후 2 53 37

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 

스크린샷 2023-05-12 오후 3 42 18

If you see this screen, you've succeeded.

kubectl get nodes

스크린샷 2023-05-12 오후 3 43 32


TESTING

kubectl apply -f nginx.yaml
kubectl get pods

스크린샷 2023-05-12 오후 3 45 17

kubectl delete -f nginx.yaml # delete pod



🚀 Trouble Shooting

스크린샷 2023-05-12 오후 2 20 38

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




📓 References

About

docker runtime + containerd + kubernetes v1.26 + cilium

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages