Skip to content

[Feature]: load images in k3s container #1621

@pablochacin

Description

@pablochacin

Problem

When testing images generated locally (for example, in a CI/CD workflow), it would be convenient not to have to push them to a repository in order to make them available to the k3s test container. Instead, the test should be able tp upload the images to the test container.

Solution

Add a method to the k3s container for loading images. This method should

  1. Export image to a file
  2. Copy image file to k3s container
  3. Import image to containerd (in the k3s container)

Benefit

No need to push images to a registry for testing

Alternatives

  1. Run a private registry.
  2. Push image to this registry
  3. Configure k3s to use this registry

Would you like to help contributing this feature?

Yes

Metadata

Metadata

Assignees

Labels

featureNew functionality or new behaviors on the existing one

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions