Skip to content

Conversation

shmuelk
Copy link
Collaborator

@shmuelk shmuelk commented Sep 29, 2025

Newer versions of Kind use containerd under the covers in the simulated K8S nodes.

There is a known incompatibility between Docker and containerd with respect to multi-platform images. Docker doesn't pull al of the layers of such images. It only pulls the layers that are applicable to the platform (i.e. AMD64 or ARM64) in question. Containerd then issues an error about missing layers.

See kubernetes-sigs/kind#3795 for more details.

This PR replaces the command kind load docker-image... with docker save and kind load image-archive. The docker save is done specifying the local platform, to only save for the appropriate platform.

elevran
elevran previously approved these changes Oct 20, 2025
Copy link
Collaborator

@elevran elevran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shmuelk please rebase

/lgtm
/approve

command = exec.Command("kind", "--name", "e2e-tests", "load", "docker-image",
"ghcr.io/llm-d/llm-d-inference-scheduler:"+eppTag)
session, err = gexec.Start(command, ginkgo.GinkgoWriter, ginkgo.GinkgoWriter)
func kindLoad(image string) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: perhaps kindLoadImage?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


ginkgo.By(fmt.Sprintf("Loading %s into the cluster e2e-tests", image))

command := exec.Command("docker", "save", "--platform", "linux/"+runtime.GOARCH,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: perhaps define target := tempDir+"/docker.tar" and then reuse in L134 and L139.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Signed-off-by: Shmuel Kallner <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

2 participants