Kurse › Raspberry Pi › Stufe 37
Raspberry Pi · Advanced · Stufe 37 / 40
Clustering with k3s
Run containerised services across several Pis with scheduling, self-healing and declarative deployment.
Advanced freischalten · CHF 29.90 Stufen 27–40, einmalig, kein Abo
10 Lektionen in dieser Stufe
- Why Cluster Pis: Availability Versus Complexity
Decide when a cluster helps and when one good node is better. · Lab: Write the availability requirement for a service and judge whether a cluster is justified. - Preparing Nodes: cgroups, Fixed Addresses and PoE Power
Configure boards so the cluster software can run on them. · Lab: Enable memory cgroups, set fixed addresses and power three nodes over PoE. - Installing a k3s Server and Joining Agents
Bootstrap a control plane and add workers. · Lab: Install the server, join two agents and list the nodes. - Pods, Deployments and Services
Describe an application declaratively and scale it. · Lab: Deploy your Flask image with three replicas behind a service. - Ingress, Load Balancing and TLS in the Cluster
Route outside traffic to services by hostname with certificates. · Lab: Publish two applications under different hostnames with TLS. - Persistent Volumes on Small Clusters
Give stateful workloads storage that survives rescheduling. · Lab: Run the broker and database with persistent volume claims and move the pod to another node. - ConfigMaps, Secrets and Helm Charts
Separate configuration from images and install packaged applications. · Lab: Move settings into ConfigMaps and Secrets and install the monitoring stack from a chart. - High Availability with Three Server Nodes
Run the control plane with embedded etcd and understand quorum. · Lab: Rebuild the cluster with three servers and shut one down. - GitOps: Letting the Cluster Pull Its Own Configuration
Make a Git repository the single source of truth. · Lab: Install a GitOps controller and deploy a change by merging a commit. - Node Failure Drills and Rolling Cluster Upgrades
Drain, upgrade and replace nodes without downtime. · Lab: Drain and upgrade each node in turn while a load test runs.
Abschlussprojekt
A three-node PoE-powered cluster that runs your dashboard and broker with TLS ingress, keeps serving when one node is unplugged and deploys from a Git repository.
Teile für diese Stufe
- 3 × Raspberry Pi 5 or Pi 4 (4 GB or more)
- 3 × PoE+ HAT for the chosen board
- 1 × PoE+ Gigabit switch 5-port or 8-port
- 4 × Ethernet patch cable
- 3 × NVMe SSD or microSD card 32 GB per node
- 1 × Cluster case or stacking kit
In jeder Lektion legst du die passenden Teile direkt in den Warenkorb. Raspberry Pi →
Voraussetzung: Levels 18, 28 and 35: Docker, networking and monitoring.