You need to enable JavaScript to run this app.
导航

无法连接到后端 HTTPS 服务

最近更新时间2023.11.21 19:51:59

首次发布时间2023.11.21 19:51:59

问题现象

通过 Ingress 无法访问到其后的 HTTPS 服务,访问时会报错"The plain HTTP request was sent to HTTPS port"。

原因分析

Ingress Controller 到后端 Pod 请求使用了默认的 HTTP 请求。

解决方案

在 Ingress 资源中设置 Annotation:nginx.ingress.kubernetes.io/backend-protocol:"HTTPS",将Ingress Controller 到后端 Pod 请求修改为 HTTPS 服务。