added minion-01 worker node

This commit is contained in:
2025-11-15 16:17:27 +00:00
parent ba92c74e79
commit 670f857651
2 changed files with 60 additions and 37 deletions

View File

@@ -1,15 +1,41 @@
# Master Node
# Casa k3s cluster
**Table of Contents:**
- [Nodes](#nodes)
- [Master Node](#master-node)
- [worker node](#worker-node)
## Nodes
**Setup user for ssh access:**
``` bash
apt install sudo
usermod -aG sudo mf
```
**Disable swap:**
``` bash
swapoff -a
Edit /etc/fstab and comment out any swap entries:
# /swapfile none swap sw 0 0
```
**Other Packages:**
``` bash
sudo apt update -y | sudo apt install curl btop -y
```
### Master Node
- debian 12
- 2g ram
- 24Gb disk
**Table of Contents:**
- [Host Setup](#host-setup)
## Host Setup
``` bash
ip a # check ethernet name
@@ -31,29 +57,26 @@ nameserver 192.168.14.1
EOF
```
**Setup user for ssh access:**
``` bash
apt install sudo
usermod -aG sudo mf
```
**Disable swap:**
``` bash
swapoff -a
Edit /etc/fstab and comment out any swap entries:
# /swapfile none swap sw 0 0
```
**Other Packages:**
``` bash
sudo apt update -y | sudo apt install curl btop -y
# /swapfile none swap sw 0 0
```
``` bash
curl -sfL https://get.k3s.io | sh -
```
### worker node
- debian 12
- 4g ram
- 8Gb OS disk
- 16Gb data disk
``` bash
# execute on server to get token
cat /var/lib/rancher/k3s/server/node-token
```
**Setup worker node:**
``` bash
# execute on server to get token
cat /var/lib/rancher/k3s/server/node-token
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="agent --server https://casa.dev.lan:6443 --token <TOKEN>" sh -s -
```