Cluster node
Steps to add a node to the cluster from scratch
- Flash the lastest 64bit Ubuntu server to the sd-card using RPI Imager
Use the following standard settings:
- lemoen#.local
- Set SSH to on:
- username: evertjanstamhuis
- password: generate one and store in keyvault
- Wifi: switch on and set wifi ssid and password
Place the sd-card and boot the divice. check the router for IP-adress
SSH setup:
ssh into the new rpi:
login with the password to check if it works.
exit again
create a new ssh id with the following command:
$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/evertjanstamhuis/.ssh/id_rsa): /Users/evertjanstamhuis/.ssh/id_lemoen#
replace the # with the node number
Copy the ssh-key to the node
add an entry to the ssh config
add an entry with the following info:
now SSH into the node with $ ssh lemoen3
Update ubuntu
NOTE: Ubuntu It is recommended to turn off ufw (uncomplicated firewall):
ufw disable If you wish to keep ufw enabled, by default, the following rules are required:
ufw allow 6443/tcp #apiserver ufw allow from 10.42.0.0/16 to any #pods ufw allow from 10.43.0.0/16 to any #services
INSTALL K3S
Label the worker
Check if everything works well