是否可以在 GKE 中使用 Google Ingress 和托管证书配置 SSL 重定向(强制 https over http)? 如果是,那么如何? 该文档没有提及它: https://cloud.google.com/kubernetes-engine/docs/how-to/managed-certs
最佳答案
现在有 no way to force redirection to the SSL version使用 GCE 入口类时的站点数量。但是,有feature requests使这在未来成为可能。
如果您需要此功能,您可以直接在后端而不是入口中执行自动重定向,或者您可以使用支持此功能的其他入口类,例如 Nginx。
或者,您可以 disallow HTTP using an ingress annotation , 只留下 HTTPS 可用。
关于使用 Google Ingress 和托管证书进行 SSL 重定向,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57015432/