Check Load Balancer in Kubernetes

6/9/2021

Is there a way to check that the Load Balancer is working in Kubernetes? I've created an external Load Balancer for an App Service running in three pods and I was curious if is there a way to check that this Load Balancer is sending traffic randomly or distributing it across the pods.

-- tritomit
kubernetes
load-balancing

1 Answer

6/9/2021

I think you can 2 options,

  1. You can check your cloud providers network logs
  2. You can call basic api get with curl to test manually and check pods logs.

curl --location --request GET 'http://YOUR-LB-SVC.NAMESPACE/YOUR-GET-API'

-- efdestegul
Source: StackOverflow