继续获得& 502 502 Bad Gateway& quot;使用NGINX HTTPS Ingress for AKS [英] Keep getting "502 Bad Gateway" with NGINX HTTPS Ingress for AKS

查看:233
本文介绍了继续获得& 502 502 Bad Gateway& quot;使用NGINX HTTPS Ingress for AKS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用lets-encrypt设置HTTPS入口,按照此处的说明进行操作  https://docs.microsoft.com/en-us/azure/aks/ingress-tls  当
我试图加载我的入口时,我看到了是一个页面说"502 Bad Gateway"然后是nginx版本号。我使用kubectl describe来查看入口和证书,以及kubectl日志来查看nginx服务本身的日志,
并且只有看起来奇怪的东西:当我描述时没有列出事件证书。

解决方案


错误代码502表示连接到nginx的后端服务不是正常工作。


查看您在入口处指定的服务。


试试这个并告诉我。



您是仅为此路线或所有路线获得502?


<我跟着文件,对我来说效果很好。我曾经使用过加密prod证书。


I'm trying to set up an HTTPS ingress with lets-encrypt, following the instructions here https://docs.microsoft.com/en-us/azure/aks/ingress-tls and when I attempt to load my ingress, all I see is a page saying "502 Bad Gateway" and then the nginx version number. I used kubectl describe to look at the ingress and the certs, as well as kubectl logs to look at the logs for the nginx services themselves, and there is only thing that looks odd: there are no events listed when I describe the certificate.

解决方案

Hi,

Error code 502 means that the backend service connected to the nginx is not working properly.

Take a look at the service which you have specified in the ingress.

Try this out and let me know.

Are you getting 502 only for this route or for all the routes?

I followed the document and it worked well for me. I have used lets encrypt prod certs though.


这篇关于继续获得&amp; 502 502 Bad Gateway&amp; quot;使用NGINX HTTPS Ingress for AKS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆