Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to use kbld with kind? #203

Open
evankanderson opened this issue Dec 17, 2021 · 4 comments
Open

Document how to use kbld with kind? #203

evankanderson opened this issue Dec 17, 2021 · 4 comments
Labels
enhancement This issue is a feature request priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done.

Comments

@evankanderson
Copy link

Kind is a popular local development option. Unfortunately, the default configuration of kind requires running kind load docker-image $IMAGENAME.

It's hard to extract the built image names to kind load docker-image. It would be nice to have something like a --kind flag to do this step as long as Kind needs it. (The other option is to run a local registry, but this is harder than needed, especially with additional tools like pack or ko that may need flags about trusting the registry.)

@evankanderson evankanderson added the carvel triage This issue has not yet been reviewed for validity label Dec 17, 2021
@pivotaljohn
Copy link
Contributor

Making sure we got this...

  1. you're using kbld to orchestrate some image builds, including configuration for ko and/or pack (or others...)
  2. OOTB, kbld will push built images to your configured Destination(s); this request is to be able to instead "load" to a local kind cluster.
  3. you're asking for this because in the local development situation, standing up a local registry is kindofa pain; this feature would close the loop with the kind cluster, faster, with few moving parts.

Did we get that right?

@pivotaljohn
Copy link
Contributor

An alternative thought...

Not unlike the Buildkit for kubectl builder...

  • when kbld creates images, those are initially stored in the local image cache.
  • if we were to run kbld in cluster (i.e. a pod with kbld, dependencies, with access to the container runtime), that local image cache is likely the same place where kind load ... puts images.
  • if the kind cluster were a single node, then the image might just be "automatically" available, locally. ... ?

@pivotaljohn pivotaljohn added enhancement This issue is a feature request priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done. and removed carvel triage This issue has not yet been reviewed for validity labels Jan 4, 2022
@pivotaljohn
Copy link
Contributor

Looking into whether it's more supportable/useful to enhance kbld itself (e.g. give the user control over where built images are published) vs. documenting/providing a configuration for a local workflow using kind.

@cppforlife
Copy link
Contributor

this seems like a pretty reasonable extension to various builders that use docker build. question is how to best configure this... could be a flag, or could be some configuration on builders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This issue is a feature request priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done.
Projects
Status: To Triage
Development

No branches or pull requests

3 participants