Skip to main content
๐ŸŽ“ Claude Code Masterclass Learn AI-assisted development on Udemy โ€” plus the companion book on Leanpub & Amazon. Start Learning
Install K3s on Raspberry Pi
Platform Engineering

Install K3s on Raspberry Pi (Step-by-Step 2026)

Step-by-step guide to install K3s on Raspberry Pi OS. Copy-paste commands, verify installation, and configure for production.

LB
Luca Berton
ยท 1 min read

Here is how to install K3s on a Raspberry Pi in 2026. Tested and verified.

Prerequisites

  • Raspberry Pi 4 or 5 (2 GB RAM minimum, 4 GB recommended)
  • Raspberry Pi OS Lite (64-bit) or Ubuntu Server ARM64
  • MicroSD card (32 GB+, A2 rated preferred)

Enable cgroups

Edit /boot/firmware/cmdline.txt (or /boot/cmdline.txt on older Raspberry Pi OS) and append:

cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory

Reboot: sudo reboot

Install K3s

curl -sfL https://get.k3s.io | sh -

Verify

sudo k3s kubectl get nodes
sudo k3s kubectl get pods -A

Add Worker Nodes (Other Pis)

On the server Pi:

sudo cat /var/lib/rancher/k3s/server/node-token

On each worker Pi:

curl -sfL https://get.k3s.io | K3S_URL=https://SERVER_IP:6443 K3S_TOKEN=YOUR_TOKEN sh -

Optimize for Raspberry Pi

# Install without Traefik to save memory
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--disable traefik --disable servicelb" sh -
#K3s #Installation #Raspberry Pi OS #Tutorial #DevOps
Share:
Free Consultation

Need help implementing this?

I help enterprises design AI infrastructure, Kubernetes platforms, and automation strategies. Free 30-minute discovery call.

Want to operate this yourself, in production?

Take the free AI Platform Engineer Readiness Scorecard to see which skills transfer โ€” then build a production-shaped AI platform in the 4-week Bootcamp.

Take the Scorecard โ†’
Luca Berton โ€” The Production AI Expert, Docker Captain

Luca Berton

The Production AI Expert ยท Docker Captain ยท KubeCon Speaker

15+ years in enterprise infrastructure. Author of 8 technical books, creator of Ansible Pilot (1M+ YouTube views, 648K site users). Former Red Hat engineer. Speaker at KubeCon EU 2026 and Red Hat Summit 2026.

Free 30-min Production AI consultation

Book Now