You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -183,9 +184,12 @@ the [feature gate](/docs/reference/command-line-tools-reference/feature-gates/)
183
184
## PID based eviction
184
185
185
186
You can configure kubelet to start terminating a Pod when it is misbehaving and consuming abnormal amount of resources.
186
-
This feature is called eviction. You can [Configure Out of Resource Handling](/docs/tasks/administer-cluster/out-of-resource) for various eviction signals.
187
+
This feature is called eviction. You can
188
+
[Configure Out of Resource Handling](/docs/concepts/scheduling-eviction/node-pressure-eviction/)
189
+
for various eviction signals.
187
190
Use `pid.available` eviction signal to configure the threshold for number of PIDs used by Pod.
188
-
You can set soft and hard eviction policies. However, even with the hard eviction policy, if the number of PIDs growing very fast,
191
+
You can set soft and hard eviction policies.
192
+
However, even with the hard eviction policy, if the number of PIDs growing very fast,
189
193
node can still get into unstable state by hitting the node PIDs limit.
190
194
Eviction signal value is calculated periodically and does NOT enforce the limit.
191
195
-->
@@ -219,15 +223,16 @@ Pod 行为不正常而没有 PID 可用。
219
223
220
224
<!--
221
225
- Refer to the [PID Limiting enhancement document](https://github.com/kubernetes/enhancements/blob/097b4d8276bc9564e56adf72505d43ce9bc5e9e8/keps/sig-node/20190129-pid-limiting.md) for more information.
222
-
- For historical context, read [Process ID Limiting for Stability Improvements in Kubernetes 1.14](/blog/2019/04/15/process-id-limiting-for-stability-improvements-in-kubernetes-1.14/).
226
+
- For historical context, read
227
+
[Process ID Limiting for Stability Improvements in Kubernetes 1.14](/blog/2019/04/15/process-id-limiting-for-stability-improvements-in-kubernetes-1.14/).
223
228
- Read [Managing Resources for Containers](/docs/concepts/configuration/manage-resources-containers/).
224
-
- Learn how to [Configure Out of Resource Handling](/docs/tasks/administer-cluster/out-of-resource).
229
+
- Learn how to [Configure Out of Resource Handling](/docs/concepts/scheduling-eviction/node-pressure-eviction/).
# This cluster role binding allows all pods in the "development" namespace to use the baseline PSP.
344
+
kind: ClusterRoleBinding
345
+
metadata:
346
+
name: psp-baseline-namespaces
347
+
roleRef:
348
+
kind: ClusterRole
349
+
name: psp-baseline
350
+
apiGroup: rbac.authorization.k8s.io
351
+
subjects:
352
+
- kind: Group
353
+
name: system:serviceaccounts:development
354
+
apiGroup: rbac.authorization.k8s.io
355
+
- kind: Group
356
+
name: system:serviceaccounts:canary
357
+
apiGroup: rbac.authorization.k8s.io
358
+
```
359
+
<!--
360
+
361
+
282
362
### Troubleshooting
283
363
284
364
- The [Controller Manager](/docs/reference/command-line-tools-reference/kube-controller-manager/) must be run
@@ -1230,10 +1310,17 @@ By default, all safe sysctls are allowed.
1230
1310
## {{% heading "whatsnext" %}}
1231
1311
1232
1312
<!--
1313
+
- See [PodSecurityPolicy Deprecation: Past, Present, and
1314
+
Future](/blog/2021/04/06/podsecuritypolicy-deprecation-past-present-and-future/) to learn about
1315
+
the future of pod security policy.
1316
+
1233
1317
- See [Pod Security Standards](/docs/concepts/security/pod-security-standards/) for policy recommendations.
1234
1318
1235
1319
- Refer to [Pod Security Policy Reference](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#podsecuritypolicy-v1beta1-policy) for the api details.
1236
1320
-->
1321
+
- 参阅 [PodSecurityPolicy Deprecation: Past, Present, and
1322
+
Future](/blog/2021/04/06/podsecuritypolicy-deprecation-past-present-and-future/),了解 Pod 安全策略的未来。
Copy file name to clipboardExpand all lines: content/zh/docs/concepts/policy/resource-quotas.md
+22-16Lines changed: 22 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,8 +102,9 @@ Neither contention nor changes to quota will affect already created resources.
102
102
<!--
103
103
## Enabling Resource Quota
104
104
105
-
Resource Quota support is enabled by default for many Kubernetes distributions. It is
106
-
enabled when the {{< glossary_tooltip text="API server" term_id="kube-apiserver" >}} `--enable-admission-plugins=` flag has `ResourceQuota` as
105
+
Resource Quota support is enabled by default for many Kubernetes distributions. It is
106
+
enabled when the {{< glossary_tooltip text="API server" term_id="kube-apiserver" >}}
107
+
`--enable-admission-plugins=` flag has `ResourceQuota` as
107
108
one of its arguments.
108
109
-->
109
110
## 启用资源配额
@@ -122,7 +123,9 @@ ResourceQuota in that namespace.
122
123
<!--
123
124
## Compute Resource Quota
124
125
125
-
You can limit the total sum of [compute resources](/docs/concepts/configuration/manage-resources-containers/) that can be requested in a given namespace.
@@ -249,7 +252,9 @@ In release 1.8, quota support for local ephemeral storage is added as an alpha f
249
252
250
253
{{< note >}}
251
254
<!--
252
-
When using a CRI container runtime, container logs will count against the ephemeral storage quota. This can result in the unexpected eviction of pods that have exhausted their storage quotas. Refer to [Logging Architecture](/docs/concepts/cluster-administration/logging/) for details.
255
+
When using a CRI container runtime, container logs will count against the ephemeral storage quota.
256
+
This can result in the unexpected eviction of pods that have exhausted their storage quotas.
257
+
Refer to [Logging Architecture](/docs/concepts/cluster-administration/logging/) for details.
253
258
-->
254
259
如果所使用的是 CRI 容器运行时,容器日志会被计入临时存储配额。
255
260
这可能会导致存储配额耗尽的 Pods 被意外地驱逐出节点。
@@ -382,7 +387,7 @@ Resources specified on the quota outside of the allowed set results in a validat
382
387
| `NotTerminating` | Match pods where `.spec.activeDeadlineSeconds is nil` |
383
388
| `BestEffort` | Match pods that have best effort quality of service. |
384
389
| `NotBestEffort` | Match pods that do not have best effort quality of service. |
385
-
| `PriorityClass` | Match pods that references the specified [priority class](/docs/concepts/configuration/pod-priority-preemption). |
390
+
| `PriorityClass` | Match pods that references the specified [priority class](/docs/concepts/scheduling-eviction/pod-priority-preemption). |
386
391
| `CrossNamespacePodAffinity` | Match pods that have cross-namespace pod [(anti)affinity terms](/docs/concepts/scheduling-eviction/assign-pod-node). |
387
392
-->
388
393
| 作用域 | 描述 |
@@ -391,7 +396,7 @@ Resources specified on the quota outside of the allowed set results in a validat
0 commit comments