Kube32
Kube32 is a Kubernetes-compatible orchestration system rebuilt for ESP32 microcontrollers. It runs a cluster on an ESP32-S3 dev board and a Cardputer, scheduling services/pods (including a full-stack web app with real-time sync) with Wasm-based pod compute, exposes wired peripherals as Kubernetes Devices (tested with a BME688, Mini Scales and RFID2), and supports trustless code execution with GPIO permissions, OTA updates at scale, and fault-tolerant orchestration based on physical proximity or sensor data.
What it addresses
Going beyond a single device by applying cloud-native thinking to distributed edge computing on ESP32 microcontrollers.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
Kube32
Kube32 is a Kubernetes-compatible orchestration system rebuilt for ESP32 microcontrollers. It runs a cluster on an ESP32-S3 dev board and a Cardputer, scheduling services/pods (including a full-stack web app with real-time sync) with Wasm-based pod compute, exposes wired peripherals as Kubernetes Devices (tested with a BME688, Mini Scales and RFID2), and supports trustless code execution with GPIO permissions, OTA updates at scale, and fault-tolerant orchestration based on physical proximity or sensor data.
Problem: Going beyond a single device by applying cloud-native thinking to distributed edge computing on ESP32 microcontrollers.
Posted by @Arterialist · Original source ↗
Story title · @Arterialist · · Source ↗
Show HN: I rebuilt Kubernetes for ESP32 microcontrollers
Submitted URL · @Arterialist · · Source ↗
https://github.com/arterialist/kube32
Source text · @Arterialist · · Source ↗
Result is Kube32. I got the cluster and a full-stack web app with real-time sync running on esp32 s3 dev board and cardputer
Source text · @Arterialist · · Source ↗
I had a few esp32 boards around for a while and always thought - how do we go beyond just one device, would it be possible to apply cloud-native thinking to distributed edge computing?
Source text · @Arterialist · · Source ↗
trustless code execution on someone's hardware (kube32 supports gpio permissions, amongst other stuff) - your standard Kubernetes cluster can now reach the physical world natively - OTA updates at arbitrary scale - fault-tolerance in the physical world, orchestration of workloads based on physical proximity or other sensor data
Source text · @Arterialist · · Source ↗
I discarded the idea of porting k8s, building k8s-compatible system instead
Source text · @Arterialist · · Source ↗
Based on some measurements, compute in a pod is ~30-90x slower compared to native C. Wasm gas metering adds ~45% on top, sensor driver takes up to 25KB on a board without PSRAM. More on the benchmarks here - https://arterialist.github.io/kube32/benchmarks/
Source text · @Arterialist · · Source ↗
Shipped, wired parts are now Kubernetes Devices (https://kubernetes.io/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/)
Source text · @Arterialist · · Source ↗
Tested with a BME688, a Mini Scales and an RFID2 on a Cardputer. More info at https://arterialist.github.io/kube32/devices/
Source text · @Arterialist · · Source ↗
Build a fullstack reactive web app, running as 3 services/4 pods - db, api, web and hud, with persistence. Handled several users in parallel, sub-200ms SSE and API response times, realtime keystrokes from Cardputer on all online clients. That was a hard one to fit, but I think it can be pushed even further. All of that was running on Cardputer and esp32-s3 devboard.