git clone https://github.com/code4mk/self-managed-k8s-setupthen change dir self-managed-k8s-setup
cd self-managed-k8s-setup- install k8s (containerd and k8s)
./k8s-setup.sh- then check kubelet status
./kubelet-status.shif status is good go to next step (3) if faces error again run install k8s step (1)
- control-plane setup
./control-plane-setup.sh- cni setup
before cni setup need to setup your worker node and worker node join with control plane
- this script setup flannel cni
./contorl-plane-cni-setupkubectl get nodes
kubectl get pods -A -o wide
kubectl get svc -A -o wide- install k8s (containerd and k8s)
./k8s-setup.sh- then check kubelet status
./kubelet-status.shif status is good go to next step (3) if faces error again run install k8s step (1)
- join with control plane
you can manually join
sudo your_tokenor
./worker-node-setup.shcd ~
cat .kube/configthen copy the cat output and that will submit with lens ( join with kube config)