简体   繁体   中英

Can we control the k8s node run container members?

Can we control the cluster node run a mount of container? Example:A node can run max container 5,if we rc has 6,at this node we just can start 5 container.

The number of pods allowed per node can be customized via a kubelet flag. So if you really wanted to control it on a node-by-node basis, you could start each kubelet with a different flag value.

In practice, it is probably better to use resource requests and limits to help the scheduler place an appropriate number of pods on each machine.

In each node:

vi /etc/kubernetes/kubelet
update KUBELET_ARGS="" to KUBELET_ARGS="--max-pods=10

"

restart your kubeclt

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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