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
--insecure-registry vs. virtualbox IP #461
Comments
Initially I thought I could work around this by generating self-signed certs and using a name from xip.io, but this requires restarting the docker daemon so it can be passed in the certs to trust them. |
Hey, How are you running the registry? Could you access it over localhost, instead of the external VM ip? |
@dlorenc This is beyond the scope of my understanding of Docker networking but I'm not sure how to teach the registry to bind to localhost on the VM and if kubernetes can pull from localhost. |
Hmm, I can think of a few ideas. You could run it with Then you could create a NodePort load balancer to make it available over localhost. |
I like the kubernetes add-on idea! Are there any minikube-specific instructions needed to enable that add-on or is it just as simple as creating the Pod and services? |
We have a bug to add support for this here: #432 If you want to create it manually you'll need to remove the |
@dlorenc thanks, the add-on worked perfectly. Here's the config I used:
|
Going to close this out for now. Please reopen if you have any other trouble! |
@dlorenc the in-cluster registry is working great, no need for any more work here |
Hi,
I just encountered a chicken-and-egg problem with minikube.
I've been starting minikube with the command
minikube start --insecure-registry 192.168.99.100:5000
followed bydocker run -d -p 5000:5000 --restart=always --name registry registry:2
. I want to run the registry on the same VM that runs kubernetes to avoid creating another VM just for the registry. However if another virtualbox VM has taken the 192.168.99.100 minikube will get assigned a different address, breaking the insecure-registry flag.I'm having trouble figuring out a way to predict the registry address so I can use it as an argument to --insecure-registry. One way might be to use a nameserver within minikube but I'd need to reconfigure the minikube VM to use it for name resolution.
Is my only option to create a self-signed cert and drop the insecure registry option? Am I missing a more obvious approach?
Thanks in advance.
brian
The text was updated successfully, but these errors were encountered: