Merge pull request #47881 from asa3311/sync-zh-149

[zh] sync liveness-readiness-startup-probes dynamic-resource-allocation install-kubeadm
pull/47901/head
Kubernetes Prow Robot 2024-09-12 08:09:12 +01:00 committed by GitHub
commit 3fdb6bc6f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 32 additions and 3 deletions

View File

@ -84,10 +84,10 @@ If such a probe is configured, it disables liveness and readiness checks until i
如果配置了这类探针,它会禁用存活检测和就绪检测,直到启动探针成功为止。
<!--
This type of probe is only executed at startup, unlike readiness probes, which are run periodically.
This type of probe is only executed at startup, unlike liveness and readiness probes, which are run periodically.
* Read more about the [Configure Liveness, Readiness and Startup Probes](/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes).
-->
这类探针仅在启动时执行,不像就绪探针那样周期性地运行。
这类探针仅在启动时执行,不像存活探针和就绪探针那样周期性地运行。
* 更多细节参阅[配置存活、就绪和启动探针](/zh-cn/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes)。

View File

@ -520,7 +520,7 @@ be installed. Please refer to the driver's documentation for details.
<!--
- For more information on the design, see the
[Structured Parameters with Structured Parameters](https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/4381-dra-structured-parameters)
[Dynamic Resource Allocation with Structured Parameters](https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/4381-dra-structured-parameters)
and the
[Dynamic Resource Allocation with Control Plane Controller](https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/3063-dynamic-resource-allocation/README.md) KEPs.
-->

View File

@ -133,6 +133,35 @@ documentation for the plugins about what port(s) those need.
你使用的 Pod 网络插件 (详见后续章节) 也可能需要开启某些特定端口。
由于各个 Pod 网络插件的功能都有所不同,请参阅他们各自文档中对端口的要求。
<!--
## Swap configuration {#swap-configuration}
The default behavior of a kubelet is to fail to start if swap memory is detected on a node.
This means that swap should either be disabled or tolerated by kubelet.
* To tolerate swap, add `failSwapOn: false` to kubelet configuration or as a command line argument.
Note: even if `failSwapOn: false` is provided, workloads wouldn't have swap access by default.
This can be changed by setting a `swapBehavior`, again in the kubelet configuration file. To use swap,
set a `swapBehavior` other than the default `NoSwap` setting.
See [Swap memory management](/docs/concepts/architecture/nodes/#swap-memory) for more details.
* To disable swap, `sudo swapoff -a` can be used to disable swapping temporarily.
To make this change persistent across reboots, make sure swap is disabled in
config files like `/etc/fstab`, `systemd.swap`, depending how it was configured on your system.
-->
## 交换分区的配置 {#swap-configuration}
kubelet 的默认行为是在节点上检测到交换内存时无法启动。
这意味着要么禁用交换swap功能要么让 kubelet 容忍交换。
* 若需允许交换分区swap请在 kubelet 配置文件中添加 `failSwapOn: false`,或通过命令行参数指定。
注意:即使设置了 `failSwapOn: false`,工作负载默认情况下仍无法访问交换空间。
可以通过在 kubelet 配置文件中设置 `swapBehavior` 来修改此设置。若要使用交换空间,
请设置 `swapBehavior` 的值,这个值不能是默认的 `NoSwap`
更多细节参阅[交换内存管理](/zh-cn/docs/concepts/architecture/nodes/#swap-memory)。
* 要禁用交换分区swap可以使用命令 `sudo swapoff -a` 暂时关闭交换分区功能。
要使此更改在重启后仍然生效,请确保在系统的配置文件(如 `/etc/fstab``systemd.swap`)中禁用交换功能,
具体取决于你的系统配置方式。
<!--
## Installing a container runtime {#installing-runtime}