Rancher中增加了Ingress域名的證書設置后,瀏覽器試驗了一下,發現http默認都會重定向到https。
根據官方文檔說明,https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/
在Ingress中新增nginx.ingress.kubernetes.io/ssl-redirect=false的Annotation,發現也不生效,瀏覽器仍然跳轉。
最后發現,強制跳轉過一次的瀏覽器,無論怎么改Rancher端的Ingress配置都還是跳轉https。
清空了瀏覽器緩存后,不再跳轉了。