当服务收到请求但没有可用的Pod时会发生什么? [英] What happens when a service receives a request but has no ready pods?

查看:75
本文介绍了当服务收到请求但没有可用的Pod时会发生什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

具有连接到一组pod的kubernetes service(类型为ClusterIP),但是它们目前都没有准备好-请求将如何处理? 会吗:

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:

  • 急切地失败
  • 超时
  • 等待直到准备就绪的Pod可用(或永远(以较早者为准))
  • 还有别的吗?

推荐答案

它将超时.

Kube-proxy从健康容器中提取IP地址并将其设置为服务的端点(后端).另外,请注意,所有kube-proxy所做的都是在创建,删除或修改服务时重新编写iptables.

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.

这篇关于当服务收到请求但没有可用的Pod时会发生什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆