API网关IP配置错误说明
问题描述
API网关在【API网关】> 【应用管理】> 【应用详情】,添加IP配置错误导致【健康值】为【否】。
解决方案
配置的健康检查没有通过,不符合预期。建议您不要使用podIP,要用serviceIP。用podIP也能通,但是端口不同(我们的端口一般是8080),而且podIP会在pod重启后发生变化,用serviceIP比较稳定。
获取serviceip的方法
1.登录master1节点
ssh {{user_name}}@{{master1_IP}}
2.获取emas-gateway-max的server IP
执行kubectl get svc | grep emas-gateway-max
适用于
- 混合云API网关