Giter VIP home page Giter VIP logo

Comments (5)

tonistiigi avatar tonistiigi commented on June 14, 2024 1

kube-pod seems consistent with docker-container

from buildx.

AkihiroSuda avatar AkihiroSuda commented on June 14, 2024

Bikeshedding: kubepod? kube-pod? k8s-pod? (I prefer kube-pod)

from buildx.

AkihiroSuda avatar AkihiroSuda commented on June 14, 2024

Maybe we should prioritize adding Deployment driver.

  • docker buildx create --driver kube --driver-opt replicas=N will createDeployment with N replicas.
    We should not use StatefulSet because creating StatefulSet pod replicas is slow due to the pod creation order constraint.
  • docker buildx rm will remove the Deployment
  • docker buildx stop should be NOP? Or resize the Deployment to 0 replica?
  • docker buildx build will connect to a Pod in Deployment using kubectl exec -it POD buildctl dial-stdio. An alternative way is to set up mTLS (which is mandatory to protect the daemon from the executor containers) and Service, but it is not straightforward to manage the lifecycle of the certificates.
  • To choose a Pod in Deployment, we can implement both random and consistenthash. As we are not going to use StatefulSet, consistenthash will break on recreation of ReplicaSet (on rolling update of Deployment). Probably this is not a huge deal.
  • docker buildx inspect will show the name of the Deployment.
  • The user will be able to do rolling update of the buildkitd image using kubectl set image,
  • The user will be able to change the number of the replicas using kubectl scale.

from buildx.

tonistiigi avatar tonistiigi commented on June 14, 2024

@AkihiroSuda SGTM, except the k8s objects should probably be created on build/bootstrap, not on create.

from buildx.

AkihiroSuda avatar AkihiroSuda commented on June 14, 2024

PR #167

from buildx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.