-
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
services running on minikube cluster are inaccessible #13788
Comments
It seems both UI and document need to be improved. I am glad to work on it. The bridge network in mac is different from in Linux, #7332 (comment) Here is a workaround for your case The tunnel is created between your Mac and Cluster IP instead of Node IP.
BTW, if you are using ingress, please refer to #12089 |
Hi @zhan9san, Thanks for the response. A few follow up questions:
|
Technically, no need. I think it is a bug. IMHO, if the service type is NodePort, the tunnel port should be Keep in mind, publishing-services-service-types
Yes. As I mentioned before, due to the limited bridge network on MacOS, a tunnel is required to access the service inside Kubernetes cluster. And the tunnel is created by If the In short, once the culsterIP type service is created, you can run The available URL would be I'll submit another PR to output this URL(http://127.0.0.1:) |
I just noticed the output issue has been fixed in codebase. ❯ ./minikube service web
|-----------|------|-------------|---------------------------|
| NAMESPACE | NAME | TARGET PORT | URL |
|-----------|------|-------------|---------------------------|
| default | web | 8080 | http://192.168.49.2:30076 |
|-----------|------|-------------|---------------------------|
🏃 Starting tunnel for service web.
|-----------|------|-------------|------------------------|
| NAMESPACE | NAME | TARGET PORT | URL |
|-----------|------|-------------|------------------------|
| default | web | | http://127.0.0.1:65455 |
|-----------|------|-------------|------------------------|
🎉 Opening service default/web in default browser...
❗ Because you are using a Docker driver on darwin, the terminal needs to be open to run it. |
I have minikube v1.25.2 which was the most recent version when I installed it two days ago. Should I try and reinstall? |
No. The change was only merged into master branch, and it may be in next release. Certainly, you can compile it by yourself. BTW, the change only fixes the UI issue, showing some friendly output. You can get the output following what I said before. |
Same here, this is a hot fix kubectl -n kube-system rollout restart deployment coredns after that services can discover and be accessed. |
Hi @alexkim-avant, as @zhan9san pointed out that issue was resolved with #13756. You can download the binary with the fix from this comment (#13736 (comment)) if you want to try it and see if it resolves you issue, thanks! |
I have tried master branch, and can say it works now. no need to restart coredns to get services running minikube version: v1.25.2
commit: 2b6319258bba0d295bd6bd0d4900fe1646c8be9d |
Thank you! I will close the issue now. |
This is back broken |
/open |
@ArangoGutierrez: Reopened 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. |
on current master, I had to restart the dns to fix this |
I'm running minikube v1.25.2 with Docker v4.8.1 and the ingress addon is not accessible. I see this and other issues related to it have been raised for about 2 years. Is there any movement on this for the docker driver? |
Could you please verify whether #13806 address this issue? |
Using the tunnel does allow me to connect to the services, alternatively HyperKit also allows me to do this without tunneling. Is this fundamentally a Docker, MacOS, or virtualization issue? I'm curious if there will eventually be native support? |
It's Docker and MacOS issue. #7332 (comment) and per-container-ip-addressing-is-not-possible
I don't know, but probably won't. |
Thanks, it works for me. I don't know why :D |
the issue is still present, any fix for this? I cannot use tunnels for what I need |
What Happened?
Hello,
I am running into an issue where after deploying my kubernetes application and service to the minikube cluster, I cannot access them through the command
minikube service <service-name>
.Versions:
Docker client 20.10.13
Docker Desktop 4.6.0
minikube v1.25.2
skaffold v1.36.1
macOS Catalina v10.15.7
Steps:
Run
minikube start --driver=docker --kubernetes-version=v1.21.10
Run
skaffold dev
with the following service.yaml file:Run
minikube service my-service
:This step opens my browser and attempts to connect to the URL http://192.168.49.2:30897/. However, this loads forever and doesn't actually connect me to my app.
Run
minikube service list
while tunnel is open:shows that there is no URL.
Run
docker port minikube
while the tunnel is open:The application port 30897 isn't listed as an accessible port for the docker container running minikube.
If I SSH into the minikube container with
minikube ssh
and usecurl
to hit my service, I get a response:So in summary, my service is accessible within the minikube docker container, but running
minikube service my-service
does not actually connect me to my service.Attach the log file
log.txt
Operating System
macOS (Default)
Driver
Docker
The text was updated successfully, but these errors were encountered: