首页 > 解决方案 > Kubernetes ClusterIP not balancing load across Pods

问题描述

I am having an issue with load balancing of traffic between communicating Deployment resources deployed in Kubernetes.

Namely the Deployment A communicates to Deployment B via vanilla ClusterIP type Service. When Deployment A starts causing large load on Deployment B, the Deployment B starts scaling new pods, but when new Pods become ready, they get no traffic.

What seems to be happening is that ClusterIP Service is balancing incoming connections instead of incoming requests, so that only pods which were available before scale-up are under load.

My question is then:

How to make ClusterIP balance the incoming requests across Pods, instead of balancing incoming TCP connections? In case that such thing is not possible, what is the alternative for balancing the HTTP traffic between two deployments?

标签: kubernetesload-balancingamazon-eks

解决方案


推荐阅读