ingress-nginx配置https证书后,原http地址访问会出现 308 Permanent Redirect(永久重定向,需要添加 nginx.ingress.kubernetes.io/ssl-redirect: "false",默认是true,ingress里配置了https证书的话,默认就一定会走https,改为"false",http和https可以共存
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "false"