简体   繁体   English

Kubernetes NGINX入口仅返回默认后端,未设置任何其他入口规则

[英]Kubernetes NGINX ingress only ever returning default back end, not any of the other ingress rules set up

I am deploying our system onto AKS, using kubectl. 我正在使用kubectl将系统部署到AKS上。 I have the following deployed: 我部署了以下内容:

Namespace: kube-system - Kubernetes NGINX controller - Default back end 命名空间:kube-system-Kubernetes NGINX控制器-默认后端

Namespace: default - 3 ingress objects, each consisting of multiple rules. 命名空间:默认-3个入口对象,每个对象由多个规则组成。 Each is bound to a different sub domain. 每个绑定到不同的子域。 When I ping the sub domains the correct IP is set (ie the ingress controller) - The services which are to be accessed are also deployed in this namespace. 当我对子域执行ping操作时,将设置正确的IP(即,入口控制器)-将要访问的服务也部署在此命名空间中。

The ingress controller has created successfully, received and EIP etc and when I go to this IP I get the default back end. 入口控制器已成功创建,接收到EIP等,当我转到该IP时,将获得默认后端。 So far so good. 到现在为止还挺好。

However, I then start to add the Ingress objects - all looks good in the ingress controller logs, adding the rules and reloading the back end with all appropriate rules however when i then try to access any of the new URLs, ie http://ingress1.ourdomain.com/ingressrule1 the request just times out. 但是,然后我开始添加Ingress对象-在Ingress控制器日志中看起来都很不错,添加了规则,并使用所有适当的规则重新加载了后端,但是当我随后尝试访问任何新的URL(即http://)时, ingress1.ourdomain.com/ingressrule1请求只是超时。

I have set the level of debugging up to v3 on the ingress controller and all looks as expected in the logs. 我已经在入口控制器上将调试级别设置为v3,并且一切看起来都与日志中预期的一样。 The only thing I can think of is that the controller and ingress & associated services are in different namespaces? 我唯一能想到的是控制器,入口和关联的服务位于不同的命名空间中? But this seems to be the correct way to set this up. 但这似乎是进行此设置的正确方法。 I have trawled many web pages now, and although the docs at: https://kubernetes.github.io/ingress-nginx/how-it-works/ and https://kubernetes.github.io/ingress-nginx/troubleshooting/ are helpful they haven't provided and clues for my situation. 我现在已经拖曳了许多网页,尽管文档位于: https : //kubernetes.github.io/ingress-nginx/how-it-works/https://kubernetes.github.io/ingress-nginx/troubleshooting /尚未提供帮助,以及我的处境线索。

Has anyone come across anything similar at all? 有人遇到过类似的东西吗?

Timeout issues are usually related to network (security groups) problems 超时问题通常与网络(安全组)问题有关

Can you make sure the port 80 is open on the security group of the instance that has the EIP your are pointing to ? 您可以确保在您要指向的EIP实例的安全组上打开端口80吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM