【问题标题】:How can I retrieve the istio ingress gateway hosts for an HPE Ezmeral Container Platform managed cluster?如何检索 HPE Ezmeral 容器平台托管集群的 istio 入口网关主机?
【发布时间】:2021-05-30 14:49:26
【问题描述】:

我已经按照docs 配置了一个带有 istio-ingressgateway 的 K8S 集群。

虽然 HPE Con​​tainer Platform 托管的 haproxy 网关可以将流量路由到 istio-ingressgateway,但我想直接访问主机端点。

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

【问题讨论】:

    标签: istio-gateway hpe-container-platform ezmeral


    【解决方案1】:

    这是我找到信息的方式:

    $ 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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-08
      • 2017-03-07
      • 2020-11-09
      • 2021-06-06
      • 1970-01-01
      • 2021-08-10
      相关资源
      最近更新 更多