-
Notifications
You must be signed in to change notification settings - Fork 12
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
Stuck pushing my image to minikube #347
Comments
Intersting, this works!
Do you do something different? |
it saves the image to a file and then load the image from this file https://github.com/podman-desktop/extension-minikube/blob/main/src/image-handler.ts |
Nope. This is not really working:
As if you're bypassing the usual workflows and runtimes. Edit: Yes, prepending Edit: I suspect some unintended interactions between podman adding a |
I would avoid to use untagged / https://kubernetes.io/docs/concepts/containers/images/#imagepullpolicy-defaulting so try to build the image giving them a tag name |
I agree. Was probably the easiest way for kubebuilder to come up with something: https://github.com/kubernetes-sigs/kubebuilder/blob/458615a6d5c20c93f82fcf60767d132c1e6d4e7c/pkg/plugins/common/kustomize/v2/scaffolds/init.go#L33 |
Seems I found a way:
will check tomorrow, if that breaks anything |
yeah, not working. the dreaded "localhost" comes back as soon as I push it to minikube.
|
@sebastian-philipp unfortunately the cri-o configuration got broken in a later version of minikube: Kubernetes is supposed to be able to find images that are under the default registry (i.e. The fake registry ("localhost") is supposed to be silent, but you can also use yourownregistry.com |
The docker-env should be able to handle cri-o (podman) also, but originally it used podman-env With a little imagination, it should be possible to translate the CONTAINER_HOST into a DOCKER_HOST minikube podman-env
would translate into DOCKER_BUILDKIT=0 docker EDIT: Added a PR for minikube to do it automatically: |
Note that you have to use You could also set up a
|
Final remark is that it is not minikube that is adding The recommendation is to either use docker.io for your own builds, or invent your own registry (whether it exists or not) |
Ok, I got stuck with minikube and tried Kind and got a very similar problem:
Seems as if this use case is in general not intended to work at all! |
The same issue exists with containerd and buildkit, shortnames are not configurable (hardcoded) That's why they add the |
I'm using a Mac and trying to get things working. According to https://minikube.sigs.k8s.io/docs/handbook/pushing/ there are 8 different ways to push images to minkube:
1. Pushing directly to the in-cluster Docker daemon (docker-env)
Doesn't work:
2. Push images using ‘cache’ command.
Seems as if minikube prepends a wrong
index.docker.io/
to the image tag.3. Pushing directly to in-cluster CRI-O. (podman-env)
See kubernetes/minikube#15036 (comment)
4. Pushing to an in-cluster using Registry addon
This would be a mess due to required renaming of the image. Might be something as a last resort, but not yet willing to do that.
5. Building images inside of minikube using SSH
6. Pushing directly to in-cluster containerd (buildkitd)
Only works with ContainerD
7. Loading directly to in-cluster container runtime
Again, seems as if minikube prepends a wrong
index.docker.io/
to the image tag.8. Building images to in-cluster container runtime
Can'f find any documentation for this: https://www.google.com/search?q=%22minikube+image+build%22+%22TARGETOS%22
Essentially I'm stuck now.
The text was updated successfully, but these errors were encountered: