-
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
Operation timed out when connect to NodePort type deployment locally #14268
Comments
at the macOS ,docker's network has isolate , so you can't access minikube's IP directly. VPN can solve this problem ! reference here https://github.com/yuzhaopeng/minikube-mac-network |
docker for mac's netwoking limit reference https://docs.docker.com/desktop/mac/networking/#i-cannot-ping-my-containers |
@yuzhaopeng Thank you for the suggestion. I'll take a look at it. |
You can get detailed information from this doc. https://minikube.sigs.k8s.io/docs/handbook/accessing/ You are using the wrong host and port. After you created the tunnel, you can access your app locally via 127.0.0.1:TUNNEL_PORT instead of minikibe_ip:node_port |
Hi @zhan9san , I'm not sure what you meant but even if I used the wrong port, this command should work:
but it doesn't. Also, this command should print out the correct URL but it doesn't (as described above):
|
|
I was following this blog for testing prometheus locally and |
Hi @winstonztong, if you want to install https://github.com/kubernetes/minikube/releases/tag/v1.24.0 |
Could you please try the step in this doc, using-minikube-service-with-tunnel? And it's better to provide the commands in that sample you run and logs. If the sample in that doc works, could you apply its strategy to your application? |
Thank you @zhan9san , let me try that. The log was included in the description above. Please let me know if that's not enough. |
Hi @nguyendviet – did @zhan9san's comment help resolve this issue? Also, is this issue still occurring? Are additional details available? If so, please feel free to re-open the issue by commenting with Additional information that may be helpful:
Thank you for sharing your experience! |
What Happened?
I start
minikube
with:I have a simple Node.js app:
I create a deployment with
NodePort
type:If I use
minikube ssh
, I cancurl 192.168.49.2:30734
orcurl 10.96.41.105:3000
and get the expected output.However, if I use:
It opens a new tab on my web browser (Chrome) but it cannot load:
http://192.168.49.2:30734/
.I have tried suggested solutions in #11193 including:
I get the same result:
Attach the log file
log.txt
Operating System
macOS (Default)
Driver
Docker
The text was updated successfully, but these errors were encountered: