rke1_latest

Hardware spec

Running on 4xpi4B with 1Tb Hdd in usb 2.0,

Software spec and installation

Use rpi imager to install latest ubuntu LTS server with ssh user&&pass enabled etc etc straight forward wizzard setup (24.04 at current)

sudo apt update

sudo apt install docker.io (installs 24 by default... see https://www.suse.com/suse-rke1/support-matrix/all-supported-versions/rke1-v1-27/)

echo " cgroup_enable=cpuset cgroup_enable=memory cgroup_memory=1 swapaccount=1 ip=192.168.1.XX::192.168.1.1:255.255.255.0:pi-X:eth0:off" | sudo tee -a /boot/cmdline.txt replace XX and X with relevant ip and hostname...
sudo usermod -aG docker user_name

sudo systemctl restart docker


ssh-keygen -t rsa

cat ~/.ssh/id_rsa.pub | ssh user@hostname 'cat >> .ssh/authorized_keys' ==> do this from the remote machine with the rke binary and cluster.yml to all nodes, so rke has ssh-rsa with username access to all nodes


get rke binary then chmod +x rke and run it with relevent cluster.yml, see mine in this repo:::


Useful commands

for p in $(./kubectl get pods | grep Terminating | awk '{print $1}'); do ./kubectl delete pod $p --grace-period=0 --force;done

docker cp 3eb6ed26e7fc:etc/nginx/ /jstorenginx