Azure Kubernetes(AKS)外部IP不可达



我的nginx loadbalancer服务中列出的外部IP不可达(ping/telnet/curl)

kc get services | grep nginx
nginx-ingress-ingress-nginx-controller             LoadBalancer   10.0.11.13     20.166.xx.xx   80:32282/TCP,443:31592/TCP                                                          32m

我试着重新安装了ingress-nginx,并安装了最新版本,但没有成功。

Nginx pod日志也不返回任何错误。

我认为这不是我的问题,而是外部ip(azure)的问题

我最近升级了kubernetes,现在是1.25.2,我认为新的k8s版本有一些错误,但我没有发现任何错误。

我已经浏览了https://learn.microsoft.com/en-us/troubleshoot/azure/azure-kubernetes/connection-issues-application-hosted-aks-cluster并做了所有的步骤,一切都很好。

我不能做azure支持票,因为它不是免费的"技术"。问题,我付不起赡养费我给support@microsoftsupport.com发了一封邮件,但是还没有回复,我想他们可能会忽略我,因为他们期待官方的支持请求。所以,如果有人知道他们会回复的邮件,请与我分享。

解决了这个问题,我为一些代理提供了另一个LB服务,它的外部IP是可访问的,所以我检查了服务之间的差异,并注意到在nginx服务中端口被定义为http而不是80:

This doesn't work
Port:                     http  80/TCP
TargetPort:               http/TCP
NodePort:                 http  32282/TCP
Endpoints:                10.244.2.37:80
Port:                     https  443/TCP
TargetPort:               https/TCP
NodePort:                 https  31592/TCP
This works
Port:                     http  80/TCP
TargetPort:               80/TCP
NodePort:                 http  32282/TCP
Endpoints:                10.244.2.37:80
Port:                     https  443/TCP
TargetPort:               443/TCP
NodePort:                 https  31592/TCP

最新更新