首页 > 解决方案 > Specify max number of pods in a node using KOPS

问题描述

We have deployed kubernetes cluster in AWS using kops. We intend to restrict the number of pods in a node using kops.

Tried using kops edit cluster and added the following parameter in cluster.yaml.

spec:
  kubelet:
    maxPods: 10

However, upon restart the nodes were not able to join the cluster. Is it even possible to achieve by just using kops. If yes, can anyone show us the way to set up a proper pod eviction policy in Kubernetes cluster using KOPS ?

We have been able to achieve this at node level by editing the /etc/sysconfig/kubelet file. A cluster level solution is what we are looking for.

标签: kuberneteskopskubelet

解决方案


推荐阅读