目录:
(1).问题现象
(2).相关版本
(3).现象实例
(4).重现步骤
(5).解决方式
(1).问题现象
k8s中的apisix-gateway反向代理k8s中的apollo, jenkins时(走apisix-gateway的nodeport),通过域名访问时有些页面自动302到apisix-gateway的targetport上(外部肯定是访问不同的),而不是nodeport。
(2).相关版本
etcd版本:3.5.1
apisix版本:2.10.0
apisix-controller版本:1.3.0
(3).现象实例
以apollo-portal举例:
路由配置:
apisix-gateway nodeport:
然后curl:
可以看到,直接从nodeport(31600)跳转到了targetport(9080)。
(4).重现步骤
kubesphere-3:kubesphere部署etcd与apisix
kubesphere-5:kubesphere部署apollo配置中心最小集群
kubesphere-8:kubesphere部署jenkins
(5).解决方式
各种方式都试过了,不行。最后用了个骚操作(本来不想用,有强迫症),就是将apisix-gateway的nodeport和targetport改成一样的。
感觉像是apisix的bug。
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有