buildx icon indicating copy to clipboard operation
buildx copied to clipboard

--driver kubernetes cannot set host network mode?

Open gitfxx opened this issue 2 years ago • 3 comments

I want to run in hostNetwork mode with buildKit container pulled up by --driver Kubernetes. Isn't that supported now?

gitfxx avatar Dec 30 '21 10:12 gitfxx

@morlay

tonistiigi avatar Jan 04 '22 18:01 tonistiigi

waiting for https://github.com/docker/buildx/issues/893

using host network in k8s is an anti-pattern.

morlay avatar Jan 05 '22 01:01 morlay

Right now you can kubectl edit deployment <builder name> and add hostNetwork: true to the pod spec. The driver options support a bunch of customizations for the deployment but as far as I can tell there's not a way to set this.

benmoss avatar Jun 09 '22 15:06 benmoss

Right now you can and add to the pod spec. The driver options support a bunch of customizations for the deployment but as far as I can tell there's not a way to set this.kubectl edit deployment <builder name>``hostNetwork: true

thanks.

gitfxx avatar Mar 20 '23 07:03 gitfxx