Skip to content

Instantly share code, notes, and snippets.

@radu-matei
radu-matei / spinkube-pi.md
Last active April 11, 2024 06:46
Setting up SpinKube on a Raspberry Pi cluster with k3s

This is a 5-node Raspberry Pi 5 cluster, assembled from PicoCluster, with an integrated power source and 8-port network switch and cooling fan.

This means it can be plugged in to power with a single power cable, and you can connect to any of the 5 boards using a single ethernet cable.

image

The goal of this tutorial is to configure the Pi cluster to run Kubernetes. To do so, we need to:

  • install an operating system on all the nodes
  • enable cgroups to run containers on each node
#!/usr/bin/env bash
set -euo pipefail
if (( $# < 2 )); then
echo "usage: gh-downloads <org> <repo> [<tag>]" >&2
exit 1
fi
owner=${1:-} repo=${2:-} tag=${3:-}