Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What happens when a service receives a request but has no ready pods?

Having a kubernetes service (of type ClusterIP) connected to a set of pods, but none of them are currently ready - what will happen to the request? Will it:

  • fail eagerly
  • timeout
  • wait until a ready pod is available (or forever, whichever is earlier)
  • something else?
like image 346
orirab Avatar asked Jan 20 '26 13:01

orirab


1 Answers

It will time out.

Kube-proxy pulls out the IP addresses from healthy pods and sets as endpoints of the service (backends). Also, note that all kube-proxy does is to re-write the iptables when you create, delete or modify a service.

So, when you send a request within your network and there is no one to reply, your request will timeout.

like image 156
suren Avatar answered Jan 23 '26 03:01

suren



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!