BuildKit and Kubernetes

BuildKit and Kubernetes

BuildKit can be used as a build service in Kubernetes

Multiple examples available



BuildKit understands the schema kube-pod://


Multiple pods can run simultaneously

Build is passed to any one of them by the service

Demo: BuildKit and Kubernetes

Pass build to remote pod

Create cluster:

kind create cluster

Run BuildKit daemon:

kubectl apply -f pod.rootless.yaml

Wait for pod to deploy:

watch kubectl get pods