Stateless cluster local OCI registry mirror
open sourceMITself-hostablefree
Spegel (Swedish for mirror) is a stateless, cluster-local OCI registry mirror for Kubernetes: it runs on every node and lets nodes pull the images other nodes already have from each other before going to the upstream registry, falling back to it when they can't. It needs no per-registry configuration, keeps a cluster pulling while an external registry is down, speeds up pod startup, avoids rate limits on registries such as Docker Hub and cuts egress traffic. It works with containerd only, which needs a registry config path and unpacked layers kept; K3s and RKE2 embed it. Xenit AB started it; it's MIT-licensed with its own Helm chart, and its maintainers help on a best-effort basis, focused on home labs and individual contributors.
Ways to install
On Kubernetes
Problems it solves
- nodes keep pulling the same large image from the internet every time a pod lands on a new node
- our cluster can't start pods when Docker Hub or our registry is down
- hitting Docker Hub pull rate limits from a Kubernetes cluster
- share container images between Kubernetes nodes peer to peer
- cut image pull time and egress costs for edge nodes on a slow link
- a pull-through cache for every registry without running a registry server
- speed up pod startup on new autoscaled nodes by pulling images from other nodes
- local image mirror for a home lab Kubernetes cluster
Features
- stateless: serves images from the nodes' own containerd content stores
- peer-to-peer image distribution between nodes
- falls back to the upstream registry when a peer can't serve an image
- caches images from external registries with no explicit configuration
- Helm chart at oci://ghcr.io/spegel-org/helm-charts/spegel, with a Flux HelmRelease example
- works out of the box on AKS, DigitalOcean, Minikube, Scaleway Kapsule and others; extra configuration on EKS, GKE, k0s, K3s, RKE2, kind and Talos
- embedded in K3s and RKE2
Limitations
Alternatives
The same job
These do what Spegel does.
