We use a headless service to balance traffic, but progers do not like this option. Installed istio, I read the documentation, but my eyes run wide.
Now the task is:
Balance traffic to the service, in my case: results-service2.predprod.svc.cluster.local
Do I understand correctly that it is enough for me to create a DestinationRule
and all incoming traffic to results-service2.predprod.svc.cluster.local
will be balanced on replicas using the LEAST_CONN
balancing algorithm?
In my case:
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
name: results-load-balancer
spec:
host: results-service2.predprod.svc.cluster.local
trafficPolicy:
loadBalancer:
simple: LEAST_CONN