-
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
The ingress address can't access correctly #1803
Comments
@sugangnb you are using a normal service and host using nodePort, hostPort or hostnetwork so using the IP address of the node will never work. |
Please reopen if you have more questions |
@aledbf
Your mean I need change http-svc using Nodeport?What can I do to make it work? |
If you are using nodeport the correct address is http://192.168.145.101:31490 |
@aledbf ,excuse me.
the log of this commond
I don't understand why this happened |
@sugangnb when you not send the host header you reach the default backend. Please check the ingress docs https://kubernetes.io/docs/concepts/services-networking/ingress/#the-ingress-resource |
Hi @aledbf ,could you please explain more why cul command without header will reach the default backend? Thanks a lot. Still confused for this. |
Sure. Without a |
@aledbf ,so nice of you. Thanks a lot for the info! Clear with it now. |
ingress-nginx version:
quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.9.0
kubernetes version :
Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.4", GitCommit:"9befc2b8928a9426501d3bf62f72849d5cbcd5a3", GitTreeState:"clean", BuildDate:"2017-11-20T05:28:34Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.4", GitCommit:"9befc2b8928a9426501d3bf62f72849d5cbcd5a3", GitTreeState:"clean", BuildDate:"2017-11-20T05:17:43Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Environment:
What happened: when i excute
kubectl get ingress -n kube-system
,the result ismy ingress adress is same with my baremetal node host ip. i can't use
curl 192.168.145.101
to access http-svc. got wrongcurl: (7) Failed connect to 192.168.145.101:80; Connection refused
.why it happened?Anything else we need to know:
my http-svc.yaml set:
my ingress.yaml set:
my ingress-nginx-controller.yaml set:
The text was updated successfully, but these errors were encountered: