-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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-nginx on bare-metal with hostnetwork #4292
Comments
@staticdev this seems an issue with your apps. If I run
This works as expected |
@aledbf How did you install ingress-nginx? |
@staticdev I followed your instructions |
@aledbf anything to do with port numbers or k8s version? I am sure my apps are working.. They are already in production using docker. |
Also, there is no test deployment or svc in the code you initially posted (for that reason the error in the log is right) |
@aledbf Sorry, I updated it to not have this test service and also updated the description, logs and version of ingress-nginx to 0.25.0. Still.. nothing works!! |
Can you be more precise? What are you testing and how? |
@aledbf I enter Firefox and try the url my.url/. It gives: Unable to connect Firefox can’t establish a connection to the server at my.url.
Also, my pod is running:
And no requests where routed to it from the logs. Could it be something to do with my /etc/hosts? I have:
|
Let's start checking the ingress controller it's working:
If that works it means the ingress controller is not the issue.
|
Note: I did all the tests putting the host domain instead of my.url (I can't disclose the domain name). But, my app does not respond to /, it responds only to /something
If I do the test 1) with the complete my.url/something, I get the result:
|
This is the correct syntax: |
By calling "curl localhost/something -H 'Host: my.url'" I got the response right! The rendered HTML. |
(from my previous comment) .... should work. If not, it means you have some connectivity or firewall issue between your workstation and the node/cluster. |
@aledbf I see, but why can't I access my.url/something from the webbrowser from the node machine then? |
DNS/proxy issues?
|
I just called people from the firewall.. the port 80 is free for the internet. The test I did: I can access is from the node machine and from the browser in the url: my.url/something. |
Closing. Clearly, this is an issue in your infrastructure, not the ingress controller. |
Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see https://kubernetes.io/docs/tasks/debug-application-cluster/troubleshooting/.):
What keywords did you search in NGINX Ingress controller issues before filing this one? (If you have found any duplicates, you should instead reply there.):
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT
NGINX Ingress controller version: 0.25.0
Kubernetes version (use
kubectl version
):Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.0", GitCommit:"e8462b5b5dc2584fdcd18e6bcfe9f1e4d970a529", GitTreeState:"clean", BuildDate:"2019-06-19T16:40:16Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.0", GitCommit:"e8462b5b5dc2584fdcd18e6bcfe9f1e4d970a529", GitTreeState:"clean", BuildDate:"2019-06-19T16:32:14Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}
Environment: bare-metal Ubuntu 18.04.2 LTS
VERSION="18.04.2 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.2 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
uname -a
): Linux cherokee 4.15.0-54-generic Fix "invalid port in upstream" on nginx controller #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 x86_64 x86_64 GNU/LinuxWhat happened:
I am trying to use hostnetwork configuration with ingress-nginx on a bare-metal machine. I tried installing the controller with helm with configurations:
This (incorrectly) creates a LoadBalancer service that get pending forever since k8s does not support that on bare-metal.
This chances the behavior of the service to be a ClusterIP, but also does not work. All services get timeout from outside the cluster.
This changes the deployment into a DeamonSet but has the same behavior as configuration 2).
What you expected to happen:
Get a working url on the browser.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know:
The configmap has no data:
The deamonset/deployment for the ingress-controller has the following logs:
kubectl logs daemonset.apps/insipid-chicken-nginx-ingress-controller
The text was updated successfully, but these errors were encountered: