-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Document how to use the registry addon - covering usage on none & Windows #4242
Comments
This might be useful: https://blog.hasura.io/sharing-a-local-registry-for-minikube-37c7240d0615/ |
The https://blog.hasura.io/sharing-a-local-registry-for-minikube-37c7240d0615/ point to https://gist.github.com/coco98/b750b3debc6d517308596c248daf3bb1 which also deploys a daemon sets. This daemon set is missing from minikube addon registry yaml files. Is this something that needs to be fixed..? I confirm that once this daemon set is created, I can access registry on localhost:5000 when using minikube v1.0.1 with none driver. This is without needing a kubectl port-forward. I was able to push a container image to registry using
And then ran it in minikube using
The final state of kubernetes was something like below:
I also believe that this can be made to work with other minikube drivers. All that is needed is to ensure that Insecure Registries includes minikube IP address. And the docker push needs to be adjusted appropriately. |
@tstromberg Here is the contents of
Can we include this as part of registry addon please..? |
@kumarom - Yes, feel free to send me a PR to include this. Here are the files that make up the registry addon: Thank you for sharing your discovery! |
@tstromberg Created a PR #4341 as per your recommendation. |
This commit adds documentation on how to use minikube addon registry. Related to kubernetes#4341 and kubernetes#4529 Resolves kubernetes#4531 and kubernetes#4242
This commit adds documentation on how to use minikube addon registry. Related to kubernetes#4341 and kubernetes#4529 This addresses kubernetes#4531 and kubernetes#4242
@robertdumitrescu Does this help you (works with minikube v1.2.0 onwards) ? If yes, can this issue be closed now.. |
Yes, it can be closed. Thank you for all your support guys! |
Hi, Unfortunately proxy does not work or I misunderstood how it works. My minikube version is v1.1.1
I can see registry and proxy are active running.
But when I try to reach port 5000 it does not work:
Btw, instructions and specs in the blog post mentioned above works well. |
@alirizakeles this should help you (works with minikube v1.2.0 onwards). The change for registry-proxy merged in #4529 which is included in minikube 1.2.0 |
@kumarom thanks. i did not check the document you mentioned, another blog post helped me and it worked. i am happy with my setup now. after upgrading my minikube installation i'll try the addon again. |
I'm confused... the link you keep sending people to only has instructions for: "Method 1: Without minikube registry addon". How does this help me with the registry addon? |
Oh, and the instructions are apparently only for linux/mac users... I'm on Windows. |
FYI, the instructions here have been updated with instructions for Windows. |
The instructions at https://minikube.sigs.k8s.io/docs/handbook/registry/ do not work for Linux anymore with minikube v1.11.0. They used to work with v.1.10. More specifically, the proxy does not listen on 5000 on the host (minikube VM) network anymore. |
@talonx which driver are you using ? |
@medyagh I did not specify anything on the CLI - I guess it falls back on virtualbox. |
The operating system version: Microsoft Windows 10 PRO - Version 10.0.17134 Build 17134
Can we add to the documentation a tutorial of some sort on how to "Use local images by re-using the Docker daemon" or how to have a minikube registry up and running on Windows?
I am really struggling with this one and in the end, after spending 6 hours trying to set up with no success I ended up using Amazon ECR for pushing images and then pulling down to Minikube with skaffold.
Some sort of step by step tutorial for local development with local registries or other mechanisms on Windows with Minikube would be highly appreciated.
Thank you! Let me know your thoughts guys.
The text was updated successfully, but these errors were encountered: