Running Cache-Efficient Builds at Scale on Kubernetes with BuildKit
summary
Demonstrates running rootless and daemonless BuildKit on Kubernetes, using BuildKit caching (export/import, local volumes) and RUN --mount to produce cache-friendly Dockerfiles and non-image artifacts (tarballs, OCI layout). Describes node placement: preferred node affinity and labels to pin builds to nodes with local caches, a controller that assigns cache labels across clusters, and trade-offs between local vs distributed caches. Shows parallel stage execution, faster rebuilds on cache hits, and practical cleanup.
AI-written summary · about
chapters (19)
- 0:00Cache-efficient builds with BuildKit
- 1:04Secure and fast builds in Kubernetes
- 2:12BuildKit concurrent cached builds
- 3:59Multi-stage builds efficiently
- 5:45Selective caching and secrets
- 7:13Local output and artifacts
- 8:41Exporting artifacts and cache layers
- 10:09Custom frontends and LLB
- 11:38Builds with user privileges
- 12:41BuildKit daemon setup
- 14:12Stateful builds and cache reliability
- 15:38Resource management and cache
- 16:44Cache misses in BuildKit
- 17:49Local vs distributed cache volumes
- 18:55Cache-aware job scheduling
- 19:57Custom cache controllers
- 21:48Cache matching and scheduling
- 22:51Cleaning up caches
- 24:16Summary
related talks
29mBuilding Images Efficiently and Securely on Kubernetes with BuildKit
35mBuildKit: A Modern Builder Toolkit on Top of containerd
35mBuilding Container Images In Kubernetes: It’s Been a Journey!
43mBuilding Docker Images on Kubernetes: A Long Journey!
32mBringing Buildpacks to Kubernetes
35mThe Growing Need for Caching Container Images in Kubernetes
22mMaking Kubernetes How We Build Things
17mtalk Kubernetes with
