2025-02-03 15:44:40 +01:00
2025-02-03 15:42:17 +01:00
2025-02-03 15:44:40 +01:00

pi-servers

pi-nvme

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

Config the raspberry pi to boot from Nvme ⚠️ IMPORTANT**

  • Edit the /boot/firmware/config.txt file:
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 last bit to 6:

# Change the BOOT_ORDER line to the following:
BOOT_ORDER=0xf416

Reboot

sudo reboot

Overclock the raspberry

  • Edit the /boot/firmware/config.txt file:
# 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

Config the Ansible playbook (inventory.yaml)

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

Documentation

Description
Overclock your raspberry pi5 with th OS on a NVMe
Readme 96 KiB