简体   繁体   English

如何将 Kubernetes 中的默认 Pod 从 110 个增加到 250 个?

[英]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.

相关问题 如何在特定时间内增加 kubernetes pod 的数量 - How to increase the number of kubernetes pods in a specific time 如何从 kube.netes pod 中识别主机云提供商? - How to identify Host cloud provider from kubernetes pods? 如何在Kubernetes中向正在运行的Pod添加内存资源 - How to add memory resources to the running pods in kubernetes 如何修复API从我的AWS Kubernetes pod中看到的IP地址 - How can I fix the IP address an API sees from my AWS Kubernetes pods 从kubernetes pod获取HTTP请求日志? (运行JupyterHub) - Get HTTP request logs from kubernetes pods ? (Running JupyterHub) AWS和Kubernetes卷-如何在多个Pod之间共享配置? - AWS and kubernetes volumes - how to share configuration across multiple Pods? Pod如何与使用Kubernetes创建的集群中的其他Pod通信 - How do pods communicates with the other pod in a cluster created using Kubernetes 如何使用Java连接到现有的Kubernetes服务器并列出所有Pod? - How to connect to an existing kubernetes server and list all pods using java? 如何将 s3 存储桶文件复制到 Kubernetes 运行的 Pod 中? - How to copy s3 bucket files in to the Kubernetes running pods? 我的 kubernetes pod 被重复驱逐 - My kubernetes pods are Evicted repetitively
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM