Kind: First class image side-loading support

Created on 22 Sep 2018  路  8Comments  路  Source: kubernetes-sigs/kind

This will be very useful for CI tasks. Currently this is achievable by adding image archives to a node image in /kind/images/ but we should support this first-class.

cc @munnerz @sebastienvas

/kind feature
/priority important-longterm

/assign

kinfeature prioritimportant-longterm

Most helpful comment

I should have posted here @rohansingh but I just about have a PR ready to solve this.

All 8 comments

the pause image has a bit of a special case in terms of the kubelet:
https://github.com/kubernetes/kubeadm/issues/1186#issuecomment-433383514

/lifecycle active
FYI @liztio

Rough design I didn't finish implementing:

kind load docker-image [--name=clustername] [--nodes=] image...
kind load image-archive [--name=clustername] [--nodes=] /path/to/image.tar
  • implicitly load to all nodes if --nodes is unset
  • load to specific nodes if --nodes is a comma separated list of node of names

kind load docker-image should pipe docker save image/name on the host to loading on each of the nodes, IE essentially be kind load image-archive <(docker save image).

@BenTheElder That seems very reasonable to me. I'm happy to do a first-pass on the implementation if nobody else is; being able to load images is a blocker for my use case.

I should have posted here @rohansingh but I just about have a PR ready to solve this.

Thanks again @BenTheElder and @stevesloka. This is invaluable for the "local clusters on developer machines" use case.

I hope it will make CI better as well!

kind uses a similar technique internally to load Kubernetes and avoid needing to push images when testing from Kubernetes source, so far that has been great 馃槃

Was this page helpful?
0 / 5 - 0 ratings

Related issues

neolit123 picture neolit123  路  62Comments

wilmardo picture wilmardo  路  29Comments

mitar picture mitar  路  34Comments

anjiawei1991 picture anjiawei1991  路  34Comments

mitar picture mitar  路  49Comments