简体   繁体   English

Azure kubernetes - Nginx 控制器的数量?

[英]Azure kubernetes - Number of Nginx controllers?

I am going to deploy an application on Azure kubernetes with the following configuration我将使用以下配置在 Azure kubernetes 上部署一个应用程序

  1. Kind : service种类:服务
  2. Replicas : 4复制品:4
  3. Horizontal pod scaling : ~8水平 pod 缩放:~8
  4. Ingress : Nginx Ingress controller入口:Nginx 入口控制器

As I have the Horizontal Pod scaling, when the load increases number of service Pod will increase automatically.由于我有 Horizo​​ntal Pod 扩展,当负载增加时,服务 Pod 的数量会自动增加。 However, should I also need to increase the frontier Nginx controller, if so, how would I do?但是,我是否还需要增加Nginx控制器的边界,如果是,我该怎么办?

The short answer is: no, you don't have to add more Ingress controllers when autoscaling.简短的回答是:不,您不必在自动缩放时添加更多 Ingress 控制器。

One Nginx Ingress controller is enough and you don't have to add/configure more in a situation when more application pods will be created.一个 Nginx Ingress 控制器就足够了,在创建更多应用程序 pod 的情况下,您不必添加/配置更多。 You just need one controller.您只需要一个控制器。

If you need to know more details regarding the HPA consider visiting the official sources here and here .如果您需要了解有关 HPA 的更多详细信息,请考虑访问此处此处的官方资源。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM