-
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
Failing to access services using NodePort on Linux #11577
Comments
Interestingly I have found that pods also can not access services (dns does not resolve) in this configuration. It really seems to be some docker issue but I have no idea what it could be. |
Hi @marlon-sousa In a nutshell, it's a known issue, #11418 How to fix it temporarily
Generally, this kind of access issue is related to Here is my issue finding prodcedure. 1. Create a pure environment.$ cat Vagrantfile
Vagrant.configure("2") do |config|
config.vm.box = "archlinux/archlinux"
config.vm.network "public_network", bridge: "en0: Wi-Fi (Wireless)"
config.vm.provider "virtualbox" do |vb|
vb.memory = "4096"
vb.cpus = 2
end
end Create an Arch Linux VM vagrant up 2. Install and start Minikube and DockerLogin to Arch Linux VM vagrant ssh
3. Create a minimal service to limit the issue scope and try to reproduce it.
a. Access this NodePort service. It failed.
b. Access service in pod. It succeeded.
It means that service works in pod level. Try to get more information
Fix it
All works well. |
@marlon-sousa Did @zhan9san's solution work? |
@marlon-sousa Due to no response I'm going to close this issue. |
Hello,
I recently made a new Arch Linux installation and now can no longer access services exposed via nodeports.
The old machine still accepts requests as usual, but not this one.
The same services are accessible on the new setup via kubectl port-forward on localhost, so I know that they are working.
Trying to access any service on
minikub ip
(192.168.49.2) returns connection refused.Enabling or disabling iptables, flushing all its rules also doesn't seen to make a difference.
I am opening this issue for two reasons:
Below, my command to start minikube:
minikube start --driver=docker --mount --mount-string $(PWD)/volumes:/volumes
test deployment
A simple deployment to test goes like this:
Environment information
Docker
Minikube
kubectl
Arch Linux
This is the iso 2020-06-01
Extra information
kubectl logs on the pod didn't show nothing special, there were no postgresql errors. Similarly, kubectl describe on the service and on the deployment didn't list errors on the events section.
I don't know how to inspect logs from minikube itself so I don't know if errors happened some where else.
minikube ssh worked as expected. However, just to try to play from the safe side, within the ssh I tryed to access service on localhost 30001 and also didn't have success.
I gave postgres as an example, but this is the same behavior of other services.
From my point of view docker isn't, somehow, delivering requests to high ports. This is similar to a behaviour I had with Mac OS, but now its happening on Linux and it shouldn't. Do you have any hint as how I can at least try to debug it further of if you know a solution?
Thanks,
Marlon
The text was updated successfully, but these errors were encountered: