Istio Pilot can be configured as the service discovery component for mesher. By default the Pilot plugin is not compiled into mesher binary. To make mesher work with Pilot, import the plugin in mesher’s entrypoint source code:
import _ "github.com/go-mesh/mesher/plugins/registry/istiov2"
Then the Pilot plugin will be installed when mesher starts. Next step, configure Pilot as service discovery in
cse: service: registry: registrator: disabled: true serviceDiscovery: type: pilotv2 address: grpc://istio-pilot.istio-system:15010
Since mesher doesn’t have to register the service to Pilot, the registrator config item should be disabled. Make serviceDiscovery.type to be pilotv2, to get service information by xDS v2 API(the v1 API is deprecated).