AFAIK, when generate endpoints, istio only support DNSLB, current istio implementing following:
func buildLocalityLbEndpoints(env *model.Environment, proxyNetworkView map[string]bool, service *model.Service,
port int, labels labels.Collection) []*endpoint.LocalityLbEndpoints {
if service.Resolution != model.DNSLB {
return nil
}
instances, err := env.InstancesByPort(service, port, labels)
if err != nil {
log.Errorf("failed to retrieve instances for %s: %v", service.Hostname, err)
return nil
}
...
Does it mean endpoint generate only support DNS resolution? thx