Skip to content

code4mk/self-managed-k8s-setup

Repository files navigation

self-managed-k8s-setup (WIP)

clone project - (control plane and worker node)

git clone https://github.com/code4mk/self-managed-k8s-setup

then change dir self-managed-k8s-setup

cd self-managed-k8s-setup

control plane

  1. install k8s (containerd and k8s)
./k8s-setup.sh
  1. 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)

  1. control-plane setup
./control-plane-setup.sh
  1. 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

Worker node setup

  1. install k8s (containerd and k8s)
./k8s-setup.sh
  1. 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)

  1. join with control plane

you can manually join

sudo your_token

or

./worker-node-setup.sh

connect with lens

cd ~
cat .kube/config

then copy the cat output and that will submit with lens ( join with kube config)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages