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

Add image import for K3D clusters #2843

Open
yashgorana opened this issue Apr 22, 2024 · 0 comments
Open

Add image import for K3D clusters #2843

yashgorana opened this issue Apr 22, 2024 · 0 comments
Labels
kind/feature New feature or feature request

Comments

@yashgorana
Copy link

Is your feature request related to a problem?

At the moment, devspace allows us to build and load image directly into a kind cluster. For other clusters, such as k3d, we have to use a local registry which is incredibly slow for large images due to the nature of docker push. On Apple Silicon+macOS sometimes push stage is just stuck and devspace is never able to deploy.

Turns out k3d supports loading images just like kind - https://k3d.io/v5.6.3/usage/commands/k3d_image_import/

Which solution do you suggest?

  • Devspace can auto-detect k3d cluster, and load the images using k3d image import CLI.
  • For detection, k3d clusters are always prefixed with k3d- so it works exactly like kubectl.GetKindContext()
  • The rest is hooking up the detection and running the CLI command in the builders, like it is done for kind

Which alternative solutions exist?
Unsure

Additional context

  • Registry used over here is k3d managed registry, and not devspace local registry.
@yashgorana yashgorana added the kind/feature New feature or feature request label Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or feature request
Projects
None yet
Development

No branches or pull requests

1 participant