Istio discovers all Services and Endpoints in the cluster and put the cluster info and endpoint info to gateways
This is fixed in 1.9.x and controlled by istiod environment variable PILOT_FILTER_GATEWAY_CLUSTER_CONFIG: true (default value false)
we proposed Istio primary-remote deployment mode in same AZ, which means to major changes
Unnecessary APIServer calls
fixed by https://github.com/istio/istio/pull/32269
add service informer filter
currently all svc changes triggers CDS, in tess most of the services are updated by service controller, dns controller, cms controller, and there is probing annotation which updated by cms regularly, such update triggered service being enqueued in Istio and it's costy, we should add filter here, e.g. only enqueue service when spec is changed or istio recognized annotations are changed
registerHandlers(c.serviceInformer, c.queue, "Services", c.onServiceEvent, nil)
should revisit all required changes for other informers like pods