Istio VirtualServie with DaemonSet on hostPort

5/1/2019

I have a DaemonSet exposed via hostPort. Is it possible to create a istio VirtualService that points to hostIP:hostPort?

-- Zhao Lang
istio
kubernetes

1 Answer

5/28/2019

Istio VirtualService is a set of traffic routing rules.

Based on the matching criteria, traffic is sent to destination service but NOT hostIP

So, with VirtualService you can set a combination of service name and NodePort

- destination:
        host: my-service.default.svc.cluster.local
        port:
          number: 9080

What is the background of your request? Probably it can be achieved in some other way.

-- A_Suh
Source: StackOverflow