-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
"Empty reply from server" when using Ingress #1618
Comments
are the deployments running? |
The most recent issue ... #1617 (comment) |
/assign @amwat |
This seems related to IPv6 and not ingress-nginx? |
hmm we don't have ipv6 enabled by default in the config, though I could imagine the docker port forwards still wind up IPv6 somehow cc @aojea |
Here you go @aojea . I had stumbled across the issue @aledbf linked before opening this one and tried to figure out what's happening, but to no avail. Any IPv6 queries also time out
|
@Arch1ve I can't reproduce it, something is replying on port 80, let's try to see what's inside the container, can you paste:
and |
@aojea here you go:
|
🤔 that seems ok ... if the curl works inside the node
it has to be something between your host and the docker node, can you verify that the docker port mapping is working correctly? something like
|
@aojea Both of your suggestions worked as expected (unfortunately...). What I ended up doing was getting rid of Docker for Mac and rebuilding everything using So, even without Docker binding anything on ports Thanks for your help! |
@aojea I'm seeing the same thing with kind on Docker for Mac. Is the empty address field for the ingress a clue?
Running nginx and exposing it as port 80 on localhost behaves as expected (with a caveat that I'll come to)
My caveat here: Docker was able to bind to port 80 on the Mac for this container, so the ingress can't be listening on it as well.
I don't see anything related to port 80 with the iptables-save command mentioned above:
|
@lizrice what´s your kind config, as you said you should not be able to run the nginx container on port 80 if you are portMapping that port to the KIND cluster. Can you check you are following these instructions https://kind.sigs.k8s.io/docs/user/ingress/? |
Same problem
Work's fine, but when trying to access from host machine getting ERR_EMPTY_RESPONSE
|
I know this is closed, but maybe this can be of help.
I assume this will deliver the result. Background is this:
So without
In the request it will answer with
This means that the ingress is configured to be used behind a loadbalncer using proxy protocol |
@hingstarne I'm having this behaviour. Do you know how can I resolve it? |
Does the
|
@hingstarne thanks for your reply. It worked. |
This might also be of interest. Summary: The process in docker instance should listen on |
Just had the same issue using kind in combination with docker-desktop... example still returns empty result... |
As per this comment, it's fixed after adding |
I had the same problem on Windows 10 using
It will start the
|
What happened:
When going through the steps described on https://kind.sigs.k8s.io/docs/user/ingress/ for the NGINX Controller on a completely new cluster:
curl localhost/foo
andcurl localhost/bar
brings backcurl: (52) Empty reply from server
kubectl proxy
withcurl http://127.0.0.1:8001/api/v1/namespaces/default/services/bar-service/proxy/
or bykubectl port-forward
to a pod, everything is fine and the expected output is shown.What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Follow the steps on https://kind.sigs.k8s.io/docs/user/ingress/ and configure the NGINX Controller.
Anything else we need to know?:
There's nothing else listening on port
80
. Here's some info:Environment:
kind version
):kind v0.8.1 go1.14.2 darwin/amd64
kubectl version
):v1.18.2
for both client/serverdocker info
):19.03.8
Docker on Mac/etc/os-release
): Mac OS X10.15.4
The text was updated successfully, but these errors were encountered: