Skip to content

Add documentation/example for how to do multi-arch builds on a multi-arch Kubernetes cluster without emulation #683

Answered by morlay
adamnovak asked this question in Q&A
Discussion options

You must be logged in to vote

@adamnovak

builder need to create in each CI job before build.

With kubernetes driver, the deployment with same name (--node) in same namespace of buildkit will be shared.

in fact, docker buildx create just create metadata of driver.
the deployment of buildkit only deploy if it not exists in the assigned namespace of the k8s cluster.
even, you could use kubectl apply the deployment to k8s cluster first (i use this way)

so in each CI job, before build, could just run, for connect docker buildx client to buildkit in k8s cluster

docker buildx create --use --name=buildkit --platform=linux/amd64 --node=buildkit-amd64 --driver=kubernetes --driver-opt="namespace=buildkit,nodeselector=kubernetes.…

Replies: 14 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by morlay
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #516 on July 21, 2021 06:25.