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.