pi-servers
- pi-servers
- Principe
- Process
- Flash Debian 12 Headless on SD card with Balena etcher
- Boot the raspberry
- Clone rpi-clone on SD card
- Launch the clone process to Nvme
- Config the raspberry pi to boot from Nvme ⚠️ IMPORTANT**
- Reboot
- Overclock the raspberry
- Config the Ansible playbook inventory.yaml
- Provision the raspberry pis to create the cluster
- Documentation
Principe
Installer un cluster K3S sur des raspberry pi 5 avec l'os sur Nvme.
Process
Pour chaque Raspberry pi du cluster, répéter ce process:
Flash Debian 12 Headless on SD card with Balena etcher
-
Download PI-OS image for Bookworm Lite
-
Flash the OS to the SD card
Boot the raspberry
Clone rpi-clone on SD card
Git clone this repo: https://github.com/geerlingguy/rpi-clone.git:
git clone https://github.com/geerlingguy/rpi-clone.git
cd rpi-clone
sudo cp rpi-clone rpi-clone-setup /usr/local/sbin
Launch the clone process to Nvme
Clone to the NVMe drive (usually nvme0n1, but check with lsblk):
sudo rpi-clone nvme0n1
Validate and choose
ext4as file system
Config the raspberry pi to boot from Nvme ⚠️ IMPORTANT**
- Edit the
/boot/firmware/config.txtfile:
dtparam=pciex1
# Note: You could also just add the following (it is an alias to the above line)
# dtparam=nvme
# Optionally, you can control the PCIe lane speed using this parameter
# dtparam=pciex1_gen=3
- Change the boot order:
sudo rpi-eeprom-config --edit
- Change the BOOT_ORDER as follow:
# Change the BOOT_ORDER line to the following:
BOOT_ORDER=0xf416
Reboot
sudo reboot
Overclock the raspberry
- Edit the
/boot/firmware/config.txtfile:
# Tell the DVFS algorithm to increase voltage by this amount (in µV; default 0).
# IMPORTANT: See note below
over_voltage_delta=50000
# Set the Arm A76 core frequency (in MHz; default 2400).
arm_freq=3000
# Set the VideoCore VII core frequency (in MHz; default 800).
gpu_freq=1000
- Reboot the raspberry:
sudo reboot
Config the Ansible playbook (inventory.yaml)
-
Git clone this repo: https://git.legaragenumerique.fr/GARAGENUM/ansible-garage-kluster
-
Edit the
inventory.yamlfile:
cd ansible-garage-kluster/
nano inventory.yaml
- Configure the Master and Workers IPs
Provision the raspberry pis to create the cluster
- Launch the playbook:
ansible-playbook -i inventory.yaml install-k3s-playbook.yaml
