Skip to content

Instantly share code, notes, and snippets.

@StevenMcElligott
StevenMcElligott / 01-k3s-rpi-single-node.md
Created January 6, 2024 20:42 — forked from janeczku/01-k3s-rpi-single-node.md
Configuration of k3s for single-node clusters to optimize performance on low power Raspberry Pi devices

Requirements

  • Raspberry Pi 3b+, CM3 or 4
  • 16GB+ SDHC card certified A1 or A2 grade to provide sufficient IO performance. Example: SanDisk Extreme microSDHC

Installation Steps

  1. Flash Ubuntu 18.04 LTS 64-bit Raspberry Pi disk image to the SD-card
  2. Either mount the boot partition on the same machine used to flash the image (Hint: sudo mkdir -p /mnt/rpi-boot && sudo mount -t vfat -o uid=root /dev/mmcblk0p1 /mnt/rpi-boot) or boot the Raspberry Pi once to apply the configuration changes below.
  3. Enable the missing cgroups by appending two arguments to /boot/firmware/nobtcmd.txt:
@StevenMcElligott
StevenMcElligott / k3s_helm_install.sh
Created April 9, 2023 23:21 — forked from icebob/k3s_helm_install.sh
K3S + Helm installing
# Install K3S
curl -sfL https://get.k3s.io | sh -
# Copy k3s config
mkdir $HOME/.kube
sudo cp /etc/rancher/k3s/k3s.yaml $HOME/.kube/config
sudo chmod 644 $HOME/.kube/config
# Check K3S
kubectl get pods -n kube-system