Kubernetes可以处理数千种服务吗? [英] Can Kubernetes handle thousands of services?
问题描述
我需要创建一个集群来部署数千个彼此独立的应用程序.每个应用程序由4-5个需要相互交谈的Pod组成.这些吊舱中的每个吊舱都需要扩展,并且可以在群集中的任何位置,因此我必须使用服务,以便它们可以进行通信.
I need to create a cluster to deploy thousands of apps, which are independent from each other. Each app is composed by 4-5 pods that need to talk to each other. Each of those pods need to scale and can be anywhere in the cluster, so I have to use services so they can communicate.
由于Kubernetes管理服务的方式,它为每个服务创建一个环境变量并在每个节点上更新本地代理,我想知道即使我有成千上万个服务,也可能成千上万个,它是否可以很好地扩展服务.
Due to the way Kubernetes manages services, where it creates an environment variable for each service and updates a local proxy on each node, I was wondering if that will scale well even if I have thousands of services, or maybe hundreds of thousands of services.
推荐答案
这是一个很好的问题.我已经提交了 https://github.com/GoogleCloudPlatform/kubernetes/issues/3345 .
This is a good question. I have filed https://github.com/GoogleCloudPlatform/kubernetes/issues/3345.
我们刚刚开始将SkyDNS与我们的群集打包在一起;用于服务发现的DNS可能比环境变量更能满足您的需求.
We've just started packaging up SkyDNS with our clusters; DNS for service discovery may meet your needs better than env variables.
这篇关于Kubernetes可以处理数千种服务吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!