[英]How to increase default pods in Kubernetes from 110 to 250?
I have a situation where I need to run a different versions of a product in a single AWS instance.我有一种情况,我需要在单个 AWS 实例中运行不同版本的产品。 but to do that total pod no is exceeding 110. Kubernetes is not able to take so much pod by default.
但是要做到这一点,总的 pod 数量超过 110。Kubernetes 默认不能接受这么多的 pod。
Is there any way to increase default pod to 250 so that I can run all the versions on a single instance?有什么方法可以将默认 pod 增加到 250,以便我可以在单个实例上运行所有版本?
You can set the MaxPods
field in the kubelet config file :您可以在kubelet 配置文件中设置
MaxPods
字段:
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
MaxPods: 250
You can then supply the config file to the kubelet binary with the --config
flag, for example:然后,您可以使用
--config
标志将配置文件提供给 kubelet 二进制文件,例如:
kubelet --config my-kubelet-config.yaml
Alternatively, the kubelet binary also has a --max-pods
flag that allows you to set the value directly.或者,kubelet 二进制文件也有一个
--max-pods
标志,允许您直接设置值。 However, this flag is deprecated and the use of a config file, as shown above, is recommended.但是,不推荐使用此标志,建议使用配置文件,如上所示。 See the kubelet reference .
请参阅kubelet 参考。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.