https://github.com/code4mk/self-managed-k8s-setup
https://github.com/code4mk/self-managed-k8s-setup
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/code4mk/self-managed-k8s-setup
- Owner: code4mk
- Created: 2024-06-11T19:42:22.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-13T20:35:40.000Z (almost 2 years ago)
- Last Synced: 2025-02-19T12:55:26.030Z (about 1 year ago)
- Language: Shell
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# self-managed-k8s-setup (WIP)
# clone project - (control plane and worker node)
```bash
git clone https://github.com/code4mk/self-managed-k8s-setup
```
then change dir `self-managed-k8s-setup`
```bash
cd self-managed-k8s-setup
```
# control plane
1. install k8s (containerd and k8s)
```bash
./k8s-setup.sh
```
2. then check kubelet status
```bash
./kubelet-status.sh
```
if status is good go to next step (3) if faces error again run install k8s step (1)
3. control-plane setup
```bash
./control-plane-setup.sh
```
4. cni setup
before cni setup need to setup your worker node and worker node join with control plane
* this script setup flannel cni
```bash
./contorl-plane-cni-setup
```
```bash
kubectl get nodes
kubectl get pods -A -o wide
kubectl get svc -A -o wide
```
# Worker node setup
1. install k8s (containerd and k8s)
```bash
./k8s-setup.sh
```
2. then check kubelet status
```bash
./kubelet-status.sh
```
if status is good go to next step (3) if faces error again run install k8s step (1)
3. join with control plane
you can manually join
```bash
sudo your_token
```
or
```bash
./worker-node-setup.sh
```
# connect with lens
```bash
cd ~
cat .kube/config
```
then copy the cat output and that will submit with lens ( join with kube config)