Skip to content

5 Kubernetes Clusters, 5 Machines, 5 Different Lessons

The Five-Cluster Journey

Most homelab stories start with "I bought a Raspberry Pi." Mine started that way too. But it didn't stop at one.

Cluster #1 — Raspberry Pi 4 (4GB): My first K3s cluster. AdGuard Home. Pi-hole. I learned what Kubernetes namespaces were. I learned PodSecurity policies the hard way. I learned that a single Pi can actually run a real orchestration layer.

Cluster #2 — Raspberry Pi 4 (4GB): Jellyfin. This one taught me about persistent volumes, media library management, and why hardware acceleration matters (spoiler: a Pi can't do it).

Cluster #3 — Raspberry Pi 4 (8GB): Backups and Git. Restic, Gitea, automated cron jobs. This cluster taught me that infrastructure without backups isn't infrastructure — it's a disaster waiting to happen.

Cluster #4 — Raspberry Pi 4 (8GB): The experiment box. New tools, random projects, configurations I'd break and rebuild. This cluster taught me how to recover from failure — because I caused a lot of it intentionally.

Cluster #5 — MacBook Air 2015 (i5, 8GB, 1TB SSD): The culmination. Everything I learned from four Pis, applied to a single x86 machine with actual GPU acceleration.

Why Five Clusters?

Because one cluster teaches you the basics. Five clusters teach you patterns.

Each Pi ran its own K3s instance. Separate control planes. Separate workloads. Separate failure domains. This forced me to think about:

  1. Storage: How do you handle persistent data across ARM devices? What changes on x86?
  2. Networking: Ingress controllers behave differently under load. Traefik vs NGINX. Cloudflare Tunnels vs direct exposure.
  3. Security: Every new cluster is a fresh attack surface. CrowdSec rules from one cluster should apply to all.
  4. Automation: You can't manually configure 5 clusters. Everything becomes YAML. Everything becomes repeatable.

Server #5: The Culmination

This MacBook Air runs 18 pods across 11 namespaces:

ServicePurposeLesson from Previous Clusters
JellyfinMedia serverGPU passthrough (impossible on Pi)
ImmichPhoto backupStorage management at scale
GiteaGit hostingMulti-cluster Git strategy
AdGuard HomeDNS ad blockingNetwork-wide DNS from cluster #1
FilebrowserFile managementLightweight alternatives to Nextcloud
PortainerCluster dashboardVisual management beats CLI every time
Uptime-KumaMonitoring11 monitors, email alerts
TriliumDocumentationEvery fix documented, every procedure saved
CrowdSec + Fail2banSecurity7,829 threats blocked across all clusters
TailscaleVPN accessZero-port access learned from cluster #3
WatchtowerAuto-updatesAutomation from cluster #4

Six Hard Lessons from Five Clusters

1. PodSecurity Policies Are Universal

Every. Single. Cluster. Every new namespace needs labeling:

bash

kubectl label namespace <name> pod-security.kubernetes.io/enforce=privileged --overwrite

I learned this on cluster #1. I forgot it on clusters #2, #3, #4, and #5. Each time, the same cryptic error. Each time, I spent 20 minutes debugging before remembering. Now it's muscle memory.

2. Rogue Processes Ship with Every Ubuntu Server

AIDE. rkhunter. File integrity scanners designed for data centers. They run at 100% CPU on every fresh Ubuntu install.

On a Pi, they make the device unresponsive. On a MacBook, they push temperatures to 96°C with the fan screaming at 6500 RPM.

The fix is universal across all 5 clusters:

bash

sudo systemctl mask aidecheck.timer dailyaidecheck.timer
sudo rm -f /etc/cron.daily/aide-check /etc/cron.daily/rkhunter

Temperature after: 54°C. Fan: near-silent 1200 RPM.

3. ARM vs x86: Hardware Acceleration Changes Everything

The Pis couldn't transcode. Software transcoding on ARM is painfully slow. Jellyfin on a Pi means direct-play only.

The MacBook's i5-5250U has Intel QuickSync. Passing /dev/dri to the container:

yaml

volumes:
- name: dri
hostPath:
path: /dev/dri

Transcoding CPU usage: 85% → 5%. This single difference makes the MacBook a viable media server where the Pis were merely functional.

4. The 15-Hour Arabic Folder Bug

Jellyfin wouldn't scan TUL8TE and Saint Levant. I tried everything across multiple debugging sessions:

  1. File permissions (fixed 5 times)
  2. ID3 tag rewriting
  3. NFO metadata generation
  4. Library deletion and recreation (4 times)
  5. Full database rebuilds (3 times)
  6. Embedded video stream stripping
  7. Installing Navidrome as an alternative test

15 hours. The culprit? Arabic folder names. Jellyfin's scanner silently skipped كوكتيل غنائي للفنان تووليت. No error. No warning.

One mv command. All 279 songs appeared.

5. Declarative Infrastructure Compounds Across Clusters

With 5 clusters, every fix becomes a YAML file. New cluster? Apply the manifests. Disaster? kubectl apply from backup.

I can recreate any of the 5 clusters from scratch in under an hour. The entire infrastructure lives in Git. This is how production systems work — and your homelab should work the same way.

6. Each Cluster Has a Personality

Cluster #1 is the stable one. #2 is the workhorse. #3 is paranoid about security. #4 is chaotic and gets rebuilt monthly. #5 is the showpiece.

You don't need 5 clusters. But each one taught me something the previous one couldn't. The lessons compound. The mistakes from cluster #2 prevent disasters on cluster #5.

By the Numbers (Server #5)

  1. 18 pods across 11 namespaces
  2. 279 songs in Jellyfin (after the Arabic folder fix)
  3. 12GB photos auto-synced in Immich
  4. 7,829 threats blocked by CrowdSec
  5. CPU idle: 54°C (down from 96°C)
  6. Fan speed: 1200 RPM (down from 6500)
  7. Disk usage: 16% of 915GB
  8. RAM usage: 3.4GB of 7.7GB
  9. Services monitored: 11, all green

What 5 Clusters Taught Me

Start with one. Learn its lessons. Apply them to the next. The mistakes from cluster #1 prevent disasters on cluster #5.

Kubernetes at home isn't overkill — it's a playground for skills that directly transfer to production. Your homelab is your resume. Five clusters, five different lessons, one continuous journey.