hghtms
hghtms

Reputation: 1

Load balancing HTTP traffic with istio from non-sidecar-enabled pods to sidecar-enabled pods

My use case:

We have a kubernetes namespace-a, with 2 deployments deployment-a and deployment-b.

Pods of the deployment-a are sidecar enabled with envoy proxy. Pods of deployment-b are not.

Is there a way to configure istio so that HTTP traffic coming from deployment-b pods -> deployment-a pods is being load balanced by istio? Currently it seems, that load balancing is done by plain kubernetes service instead of istio.

Upvotes: 0

Views: 27

Answers (2)

hghtms
hghtms

Reputation: 1

External services can access services managed by Istio via a Gateway. They can use internal IP of ingress gateway and provide a host header for which server the request is sent to. Or add a DNS entry for ingress gateway IP.

Upvotes: 0

Arnau Senserrich
Arnau Senserrich

Reputation: 431

If you're hitting the k8s service directly then it will round robin the requests (k8s default), and as your deployment is not sidecar injected, you can't use load balancing algorithms from the DR to configure the client.

Upvotes: 0

Related Questions