-
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
Publish additional ports and IPs when running minikube start #9198
Comments
This is by design. The minikube cluster is not supposed to be available "outside" the local developer machine, currently the recommended approach is to There actually two different issues here, the first is accessing the apiserver remotely (for some reason). Typically This probably need some better explaining in documentation. Because it is a recurring question (and perhaps expectation) Requesting people to set up tunnels does not improve security. |
The currently exposed ports are:
There is a pending request to make it possible for the user to add more (#7332), but that doesn't really answer the question... We probably don't need to expose docker anymore, and the registry port is just to get around the TLS certificate requirement.
Currently we use |
I think the main reason that is asked a lot is because minikube is a very easy way of starting a new k8s cluster. So some people will want to use it as a "home cluster" which gives the possibility to host some small applications, like an DLNA server etc. Thus going beyond of just a developer cluster. Now for the design part, I think it would be nice to leave the decision of which ports to expose to the user, that would close all those issues, wouldn't it? 😄 |
One could also view this as saying that It would be nice to cooperate a bit more, so that there are available alternatives for both development and deployment. |
Discussed with team, it seems like we would be willing to accept a PR that introduces this functionality. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Rotten issues close after 30d of inactivity. Send feedback to sig-contributor-experience at kubernetes/community. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
When
minikube start
command runs using the Docker driver it tells Docker to publish some ports, but it binds to the localhost ip only, thus not giving a chance to access the cluster from another machine using thekubectl
for example. Another issue is if one wants to access a Service via an Ingress, in that case we need the same solution, which is to add some entries to the iptables as following:I could also execute those command to bind the 8443 port to 0.0.0.0 to use the kubectl outside the local minikube machine.
Does minikube provide a better way of doing that or is that an inexistent feature?
The text was updated successfully, but these errors were encountered: