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。
清空了浏览器缓存后,不再跳转了。