I have one service which has two endpoints, for example, the service iris.test.com with two endpoints: 22.214.171.124:20880 and 126.96.36.199:20881. Can I define one serviceEntry for it? I am not sure how I can define these two points now. Is this doable or should I define two separate service entries?
apiVersion: networking.istio.io/v1alpha3 kind: ServiceEntry metadata: name: iris spec: hosts: - iris.test.com ports: - number: 20800 name: http protocol: HTTP location: MESH_EXTERNAL resolution: STATIC endpoints: - address: 188.8.131.52 ports: http: 20880 - address: 184.108.40.206 ports: http: 20881
I am trying using above yaml but it does not work. Only one of the endpoint is accessible.