如何检索HPE Ezmeral Container Platform托管集群的istio-ingress网关主机



我已经根据文档配置了一个带有istio-ingressgateway的K8S集群。

尽管HPE容器平台管理的haproxy网关可以将流量路由到istio-ingressgateway,但我希望直接访问主机端点。

如何确定避开托管haproxy网关的主机的入口IP地址和端口?

我就是这样找到信息的:

$ kubectl get po -l istio=ingressgateway -n istio-system 
-o jsonpath='{.items[*].status.hostIP}'
10.1.0.193 10.1.0.132 10.1.0.174

端口如下所示:

$ kubectl -n istio-system get service istio-ingressgateway 
-o jsonpath='{.spec.ports[?(@.name=="http2")].nodePort}'
32725
$ kubectl -n istio-system get service istio-ingressgateway 
-o jsonpath='{.spec.ports[?(@.name=="https")].nodePort}'
30557
$ kubectl -n istio-system get service istio-ingressgateway 
-o jsonpath='{.spec.ports[?(@.name=="tcp")].nodePort}'
[no data returned]

来源:istio-docs

最新更新