How to configure ingress gateway in istio?

后端 未结 2 1213
旧巷少年郎
旧巷少年郎 2021-01-03 16:07

I\'m new to istio, and I want to access my app through istio ingress gateway, but I do not know why it does not work. This is my kubenetes_deploy.yaml file cont

2条回答
  •  半阙折子戏
    2021-01-03 16:32

    First of all, as @Abhyudit Jain mentioned you need to correct port in VirtualService to 8000

    And then you just add another port to your istio-ingressgateway service

    kubectl edit svc istio-ingressgateway -n istio-system
    

    add section:

    ports:
      - name: http
        nodePort: 30001
        port: 15000
        protocol: TCP
        targetPort: 80
    

    This will accept HTTP traffic on port 15000 and rout it to your destination service on port 8000

    simple schema as follows:

    incoming traffic --> istio-gateway service --> istio-gateway --> virtual service --> service --> pod
    

提交回复
热议问题