Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Differences between "kubectl build" and "docker buildx build"? #120

Open
jpetazzo opened this issue Dec 10, 2021 · 1 comment
Open

Differences between "kubectl build" and "docker buildx build"? #120

jpetazzo opened this issue Dec 10, 2021 · 1 comment

Comments

@jpetazzo
Copy link

jpetazzo commented Dec 10, 2021

Hi!

First of all, I'm glad to see that you're still busy making cool stuff in the container space 😊

I stumbled upon kubectl-build thanks to its Tilt plugin, and I've been playing with it a bit for my Kubernetes workshops (specifically to enable a "100% Kubernetes" scenario where we wouldn't necessarily rely on Docker to build images, since it may or may not be available on our clusters).

After playing a bit with it, I wonder - is there a fundamental difference between using kubectl build, and using docker buildx build (after doing docker buildx create --driver=kubernetes --use, of course)? Is it kind of the same (but with some extra bells and whistles, like the automatic setup of the builder, the use of a registry secret, maybe more...) or is there something fundamentally different between the two?

Thank you! ♥

(PS sorry for the initially blank message; I fat-fingered my keyboard😅)

@jpetazzo jpetazzo changed the title Differences between "kubectl build" and "docker-buildx Differences between "kubectl build" and "docker buildx build"? Dec 10, 2021
@dhiltgen
Copy link
Contributor

dhiltgen commented Dec 14, 2021

This project began life as a fork of buildx refactored as a kubectl CLI plugin. We had considered trying to keep the codebase aligned to be able to flow fixes/features back and forth, but as we refactored the code, this ultimately didn't look like the optimal path. Ultimately, I'd think of this as a kubectl based BuildKit client. One of the key goals to call out is making sure images are available in the local container runtime without requiring a registry. Over time we'd like to continue to enhance the capabilities for developers wanting to build images within k8s.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants