【问题标题】:Curl to a application hosted on kuberetes returns 502 Bad Gateway卷曲到托管在 kuberetes 上的应用程序返回 502 Bad Gateway
【发布时间】:2019-03-20 03:40:37
【问题描述】:
curl -v -k https://xxxx.yyyy.zzzz.pp/
*   Trying 143.204.181.115...
* Connected to xxxx.domain.name.something (143.204.181.115) port 443 (#0)
* SSL peer handshake failed, the server most likely requires a client certificate to connect
* Closing connection 0
curl: (35) SSL peer handshake failed, the server most likely requires a client certificate to connect

【问题讨论】:

  • 你能分享你的部署吗?豆荚?设置?
  • curl: (35) SSL peer handshake failed, the server most likely requires a client certificate to connect 错误非常具有描述性。您尝试连接的主机是否会拒绝没有 x.509 客户端证书的连接?

标签: nginx kubernetes kubernetes-ingress


【解决方案1】:

这与入口控制器设置有关,即对应用程序入口的请求进行负载平衡。如果入口的注释规范格式不正确,即

    nginx.ingress.kubernetes.io/secure-backends - if the nginx ingress controller is setup using the chart https://github.com/kubernetes/ingress-nginx

    ingress.kubernetes.io/secure-backends - if the nginx ingress controller is setup using the KOPS https://github.com/kubernetes/kops/tree/master/addons/ingress-nginx

“nginx”。必须从注释中删除,这解决了点击应用程序 URL 时的 502 Bad Gateway 错误。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-03-16
    • 2020-06-14
    • 2021-02-24
    • 1970-01-01
    • 1970-01-01
    • 2016-04-09
    • 2020-12-14
    • 2019-08-24
    相关资源
    最近更新 更多