-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
ingress is not listening on port 80 #4799
Comments
If that's empty I assume you are trying to use the ingress controller in bare-metal (or docker in docker) |
I do n’t understand what to do to solve this problem, |
If you used Ubuntu and it worked, then it is not related to the ingress-nginx itself. Keep in mind the ingress controller is just another pod and has nothing to do with the Kubernetes networking exposing ports or configuring iptables rules. |
The problem has been solved, you can add the following code to the deployment.
|
What do you mean? In the provided yaml files to install the ingress controller? What you did ( |
I don't use this approach in a production environment, I just use it locally for testing. |
i am working on POC, added "hostNetwork: true" to ingress controller deployment manifest. worked fine for me. thank you @wxq851685279 |
added |
it works for me too recently only after doing something, like restart docker service, ingress-nginx did not work. curl x.x.x.x:80 is not ok. very strange |
I would like to appreciate @aledbf for the solution here. I have been facing 504 Gateway Timeout and 502 Bad Gateway errors on my services (Apache Spark History Server and another standalone service for Spark). Both the services were running on 0.0.0.0:18080 and 0.0.0.0:8080 respectively within the container/ pod and it took me a week to find this setting. Adding this setting in deployment of both the services, magically fixed the issues -
|
Just a bit more context on this - in some tutorials you might be advised to simply do a If you're working with a baremetal implementation on a private LAN without a load balancer, you'll need to modify this step a bit. instead of applying that deploy.yaml directly, do a wget (e.g.
etc. So what you're doing is modifying the spec of the template for the controller deployment. Deploy the modified version with something like:
The Ingress resource that you create to use this deployment/controller should refer to it like this:
You can then do a describe like this:
And find out what lucky node has been designated as your ingress. |
@JamesCHub |
HI @wxq851685279. |
NGINX Ingress controller version: 0.26.1
Kubernetes version (use
kubectl version
): v1.16.3Environment:
Cloud provider or hardware configuration:
OS (e.g. from /etc/os-release): deepin 15.11
Kernel (e.g.
uname -a
): Linux w-pc 5.4.0-xanmod0 Basic structure #1.191125 SMP PREEMPT Mon Nov 25 16:18:17 -03 2019 x86_64 GNU/LinuxInstall tools:
What happened:
localhost: 31486 access normally, but port 80 is not accessible, why.
Use netstat to find no process listening on port 80.
What you expected to happen:
Accessible via localhost port 80
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know:
This is a single node k8s test environment built locally
The text was updated successfully, but these errors were encountered: