git clone https://github.com/code4mk/self-managed-k8s-setup
then 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.sh
if 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-setup
kubectl 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.sh
if 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_token
or
./worker-node-setup.sh
cd ~
cat .kube/config
then copy the cat output and that will submit with lens ( join with kube config)