我已经按照K8S配置了一个带有ingressgateway的文档集群。
虽然HPE容器平台管理的HPE网关可以将流量路由到ingressgateway,但我想直接访问主机端点。
如何确定主机的入口IP地址和端口,以避免托管haproxy网关?
发布于 2021-05-30 14:49:26
我就是这样找到这些信息的:
$ 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文档
https://stackoverflow.com/questions/67762517
复制相似问题