kubernetes - 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.
解决方案
推荐阅读
- php - 仅在不匹配时保存一行
- python - 等待鼠标点击被解除的方式?
- javascript - html中的无限背景
- swift - 在 SwiftUI 中强制视图位于视图的右下角
- jquery - 将 Ajax 与 jQuery DataTables 一起使用时,如何确定如何处理返回的数据?
- typescript - elasticsearch 和 typescript - 将结果绑定到模型
- javascript - GATSBY:TypeError:无法读取未定义的属性“包含”
- regression - 使用 LinearModelFit 或 Predict 在 Mathematica 中尝试多元线性回归模型
- java - Java,安卓应用。无法发送 post 请求 HttpURLConnection conn
- json - 关联数组在swift中无法正常工作