1

Assuming that the pods have exposed port 80.

How to send a requets to all the running pods, rather than 1.

Since the load balancer would route the traffic to only 1 pod. (Note : using HAproxy load balancer here, FYI)

Fritz Duchardt
  • 11,026
  • 4
  • 41
  • 60
shrw
  • 1,719
  • 5
  • 27
  • 50
  • Would this work for you [Kubenetes: Is it possible to hit multiple pods with a single request in Kubernetes cluster](https://stackoverflow.com/questions/49612412/kubenetes-is-it-possible-to-hit-multiple-pods-with-a-single-request-in-kubernet) – Crou May 18 '20 at 15:13
  • yes .. kind of what i was looking for .. thanks – shrw May 18 '20 at 16:19

1 Answers1

1

There is no particular way, kubectl exec only works one container at a time so you will need to call it into a loop if you want to use it on many.

coderanger
  • 52,400
  • 4
  • 52
  • 75