--- # buildkitd.toml. Validated against the pinned image (v0.34.1-rootless): `buildctl debug workers # -v` reports "Maximum used space: 4.29GB / Reserved space: 1.07GB" for the default policy. # # WHY 4GB. The cache lives in an emptyDir on the NODE's disk (deployment.yaml), and the nodes had # 7-9 GB free when this was written. The largest image (toolbox) is ~1.4 GB uncompressed; the # three images share their Fedora base. The emptyDir's sizeLimit sits above this cap, so GC # trims the cache well before the kubelet would evict the pod for exceeding it. apiVersion: v1 kind: ConfigMap metadata: name: buildkitd-config namespace: buildkit labels: app.kubernetes.io/name: buildkitd data: buildkitd.toml: | [worker.oci] enabled = true gc = true maxUsedSpace = "4GB" reservedSpace = "1GB" [worker.containerd] enabled = false