question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Service ports not working from localhost

See original GitHub issue

Please run microk8s.inspect and attach the generated tarball to this issue.

We appreciate your feedback. Thank you for using microk8s.

I’m unable to access services exposed via NodePorts from localhost on the machine running microk8s, but am able to access the services from off box using the NodePort. For example, I’m running microk8s on nuc5.wittlesouth.com. You can see that I get an empty JSON object response from the registry service running on that node via curl:

Erics-2018-MBP:~ eric$ curl nuc5.wittlesouth.com:32000/v2/
{}Erics-2018-MBP:~ eric$

And when I run the same request from on box, the request hangs with no response:

Erics-2018-MBP:~ eric$ ssh ericw@nuc5.wittlesouth.com
ericw@nuc5:~$ curl localhost:32000/v2/
^C

This is a brand-new install done earlier today.

inspection-report-20190608_162030.tar.gz

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ktsakalozoscommented, Jun 11, 2019

I see you have IPv6 in your nodes. Could you try the suggestion found here https://github.com/ubuntu/microk8s/issues/196#issuecomment-443869365 or disable IPv6?

0reactions
stale[bot]commented, Jun 28, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ports not opening on localhost
Hello,. I am currently trying to open my ports on FiveM for port 30125 to allow other people to connect to the server...
Read more >
Localhost Refused to Connect - How to Fix the Error
How to Solve the Localhost Refused to Connect Error? · 1. First, stop all instances running in WAMP with the End Task button....
Read more >
Localhost cannot be reached error when port 8080 is not ...
Host 'localhost (127.0.0.1)' could not be reached on port 8080. ... that is running on the Tobii Pro Lab computer can allocate this...
Read more >
localhost, 127.0.0.1 and hosts file are not working on a ...
There was another service in background which was somehow blocking some resources (probably port 680) denying access to the backend.
Read more >
Why is localhost not working?
Go to Your XAMPP Control panel. · Click on apache > config > Apache (httpd.conf) · Search for Listen 80 and replace with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found