60 lines
881 B
Markdown
60 lines
881 B
Markdown
# Master Node
|
|
|
|
- debian 12
|
|
- 2g ram
|
|
- 24Gb disk
|
|
|
|
**Table of Contents:**
|
|
|
|
- [Host Setup](#host-setup)
|
|
|
|
## Host Setup
|
|
|
|
``` bash
|
|
ip a # check ethernet name
|
|
|
|
# removes automatic vonfiguration as dhcp client
|
|
sed -i '/ens18/d' /etc/network/interfaces
|
|
|
|
cat <<EOF > /etc/network/interfaces.d/ens18
|
|
# my network configuration
|
|
auto ens18
|
|
iface ens18 inet static
|
|
address 192.168.14.9/24
|
|
gateway 192.168.0.1
|
|
EOF
|
|
|
|
cat <<EOF > /etc/resolv.conf
|
|
domain dev.lan
|
|
search dev.lan. lan.
|
|
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 -
|
|
```
|