只约束非 BestEffort
只约束非 BestEffort
spec:
hard:
pods: "50"
scopes:
- NotBestEffortscope
| scope | 覆盖范围 |
|---|---|
| Terminating | 设置了 activeDeadlineSeconds 的 Pod(批处理类) |
| NotTerminating | 未设置 activeDeadlineSeconds 的 Pod(长驻服务) |
| BestEffort | 未设 requests/limits 的 Pod |
| NotBestEffort | 至少设置了 requests 或 limits 的 Pod |
Terminating 与 NotTerminating、BestEffort 与 NotBestEffort 各自成对互斥,可给两类负载分别设额。