BuildKit and Kubernetes

BuildKit and Kubernetes

BuildKit can be used as a build service in Kubernetes

Multiple examples available

Pod

Proof-of-concept

BuildKit understands the schema kube-pod://

Deployment

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