Skip to content

Commit 89e0008

Browse files
committed
[zh-cn]sync kube-scheduler persistent-volume pod-security-policy
Signed-off-by: xin.li <xin.li@daocloud.io>
1 parent 1194953 commit 89e0008

File tree

4 files changed

+56
-45
lines changed

4 files changed

+56
-45
lines changed

content/zh-cn/docs/reference/glossary/kube-scheduler.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ tags:
1313
---
1414

1515
<!--
16-
---
1716
title: kube-scheduler
1817
id: kube-scheduler
1918
date: 2018-04-12
@@ -24,24 +23,28 @@ short_description: >
2423
aka:
2524
tags:
2625
- architecture
27-
---
2826
-->
2927

3028
<!--
3129
Control plane component that watches for newly created
3230
{{< glossary_tooltip term_id="pod" text="Pods" >}} with no assigned
3331
{{< glossary_tooltip term_id="node" text="node">}}, and selects a node for them
34-
to run on.-->
35-
36-
`kube-scheduler` 是{{< glossary_tooltip text="控制平面" term_id="control-plane" >}}的组件,
37-
负责监视新创建的、未指定运行{{< glossary_tooltip term_id="node" text="节点(node)">}}的 {{< glossary_tooltip term_id="pod" text="Pods" >}},
38-
并选择节点来让 Pod 在上面运行。
32+
to run on.
33+
-->
34+
`kube-scheduler` 是{{< glossary_tooltip text="控制平面" term_id="control-plane" >}}的组件,
35+
负责监视新创建的、未指定运行{{< glossary_tooltip term_id="node" text="节点(node)">}}的
36+
{{< glossary_tooltip term_id="pod" text="Pod" >}},
37+
并选择节点来让 Pod 在上面运行。
3938

4039
<!--more-->
4140

4241
<!--
43-
Factors taken into account for scheduling decisions include individual and collective resource requirements, hardware/software/policy constraints, affinity and anti-affinity specifications, data locality, inter-workload interference and deadlines.
42+
Factors taken into account for scheduling decisions include:
43+
individual and collective {{< glossary_tooltip text="resource" term_id="infrastructure-resource" >}}
44+
requirements, hardware/software/policy constraints, affinity and anti-affinity specifications,
45+
data locality, inter-workload interference, and deadlines.
4446
-->
45-
46-
调度决策考虑的因素包括单个 Pod 及 Pods 集合的资源需求、软硬件及策略约束、
47-
亲和性及反亲和性规范、数据位置、工作负载间的干扰及最后时限。
47+
调度决策考虑的因素包括:
48+
单个 Pod 及 Pod
49+
集合的{{< glossary_tooltip text="资源" term_id="infrastructure-resource" >}}需求、
50+
软硬件及策略约束、亲和性及反亲和性规范、数据位置、工作负载间的干扰及最后时限。

content/zh-cn/docs/reference/glossary/persistent-volume.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ date: 2018-04-12
55
full_link: /zh-cn/docs/concepts/storage/persistent-volumes/
66
short_description: >
77
持久卷是代表集群中一块存储空间的 API 对象。
8-
它是通用的、可插拔的、并且不受单个 Pod 生命周期约束的持久化资源。
98
109
aka:
1110
tags:
@@ -18,7 +17,7 @@ id: persistent-volume
1817
date: 2018-04-12
1918
full_link: /docs/concepts/storage/persistent-volumes/
2019
short_description: >
21-
An API object that represents a piece of storage in the cluster. Available as a general, pluggable resource that persists beyond the lifecycle of any individual Pod.
20+
An API object that represents a piece of storage in the cluster.
2221
2322
aka:
2423
tags:
@@ -27,10 +26,14 @@ tags:
2726
-->
2827

2928
<!--
30-
An API object that represents a piece of storage in the cluster. Available as a general, pluggable resource that persists beyond the lifecycle of any individual {{< glossary_tooltip text="Pod" term_id="pod" >}}.
29+
An API object that represents a piece of storage in the cluster. Representation of as a general, pluggable storage
30+
{{< glossary_tooltip text="resource" term_id="infrastructure-resource" >}} that can persist beyond the lifecycle of any
31+
individual {{< glossary_tooltip text="Pod" term_id="pod" >}}.
3132
-->
32-
持久卷是代表集群中一块存储空间的 API 对象。它是通用的、可插拔的、并且不受单个
33-
{{< glossary_tooltip text="Pod" term_id="pod" >}} 生命周期约束的持久化资源。
33+
持久卷是代表集群中一块存储空间的 API 对象。
34+
表示为一般的、可插拔的存储{{< glossary_tooltip text="资源" term_id="infrastructure-resource" >}},
35+
它可以超越任何单独的 {{< glossary_tooltip text="Pod" term_id="pod" >}}
36+
的生命周期而存在。
3437

3538
<!--more-->
3639

@@ -39,6 +42,6 @@ PersistentVolumes (PVs) provide an API that abstracts details of how storage is
3942
PVs are used directly in scenarios where storage can be created ahead of time (static provisioning).
4043
For scenarios that require on-demand storage (dynamic provisioning), PersistentVolumeClaims (PVCs) are used instead.
4144
-->
42-
持久卷(PersistentVolumes,PV)提供了一个 API,该 API 对存储的供应方式细节进行抽象,令其与使用方式相分离。
43-
在提前创建存储(静态供应)的场景中,PV 可以直接使用。
44-
在按需提供存储(动态供应)的场景中,需要使用 PersistentVolumeClaims (PVC)
45+
持久卷(PersistentVolumes,PV)提供了一个 API,该 API 对存储的供应方式细节进行抽象,
46+
令其与使用方式相分离。在提前创建存储(静态供应)的场景中,PV 可以直接使用。
47+
在按需提供存储(动态供给)的场景中,需要使用 PersistentVolumeClaim(PVC

content/zh-cn/docs/reference/glossary/pod-security-policy.md

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,46 +4,37 @@ id: pod-security-policy
44
date: 2018-04-12
55
full_link: /zh-cn/docs/concepts/security/pod-security-policy/
66
short_description: >
7-
Pod 的创建和更新操作启用细粒度的授权
7+
移除了强制执行 Pod 安全限制的 API
88
99
aka:
1010
tags:
11-
- core-object
12-
- fundamental
11+
- security
1312
---
1413
<!--
1514
title: Pod Security Policy
1615
id: pod-security-policy
1716
date: 2018-04-12
1817
full_link: /docs/concepts/security/pod-security-policy/
1918
short_description: >
20-
Enables fine-grained authorization of pod creation and updates.
19+
Removed API that enforced Pod security restrictions.
2120
2221
aka:
2322
tags:
24-
- core-object
25-
- fundamental
23+
- security
2624
-->
2725

2826
<!--
29-
Enables fine-grained authorization of {{< glossary_tooltip term_id="pod" >}} creation and updates.
27+
A former Kubernetes API that enforced security restrictions during {{< glossary_tooltip term_id="pod" >}} creation and updates.
3028
-->
31-
32-
为 {{< glossary_tooltip text="Pod" term_id="pod" >}} 的创建和更新操作启用细粒度的授权
29+
以前的 Kubernetes API,在 {{< glossary_tooltip text="Pod" term_id="pod" >}}
30+
创建和更新期间强制执行安全限制
3331

3432
<!--more-->
3533

36-
<!--
37-
A cluster-level resource that controls security sensitive aspects of the Pod specification. The `PodSecurityPolicy` objects define a set of conditions that a Pod must run with in order to be accepted into the system, as well as defaults for the related fields. Pod Security Policy control is implemented as an optional admission controller.
38-
-->
39-
40-
Pod 安全策略是集群级别的资源,它控制着 Pod 规约中的安全性敏感的内容。
41-
`PodSecurityPolicy` 对象定义了一组条件以及相关字段的默认值,Pod
42-
运行时必须满足这些条件。Pod 安全策略控制实现上体现为一个可选的准入控制器。
43-
4434
<!--
4535
PodSecurityPolicy was deprecated as of Kubernetes v1.21, and removed in v1.25.
4636
As an alternative, use [Pod Security Admission](/docs/concepts/security/pod-security-admission/), or a 3rd party admission plugin.
4737
-->
4838
PodSecurityPolicy 已于 Kubernetes v1.21 起弃用,并在 v1.25 中删除。
49-
作为替代方案,请使用 [Pod 安全准入](/zh-cn/docs/concepts/security/pod-security-admission/)或第三方准入插件。
39+
作为替代方案,请使用
40+
[Pod 安全准入](/zh-cn/docs/concepts/security/pod-security-admission/)或第三方准入插件。

content/zh-cn/docs/reference/node/kernel-version-requirements.md

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,20 +107,34 @@ In runc document, Kernel older than 5.2 is not recommended due to lack of freeze
107107
-->
108108
## v2 控制组 {#version2-control-groups}
109109

110-
Kubernetes 对 cgroup v1 的支持从 v1.31 开始处于维护模式;推荐使用 cgroup v2。
110+
Kubernetes 对 CGroup v1 的支持从 v1.31 开始处于维护模式;推荐使用 CGroup v2。
111111
[Linux 5.8](https://github.com/torvalds/linux/commit/4a7e89c5ec0238017a757131eb9ab8dc111f961c)
112-
中,为了方便使用,系统层面的 `cpu.stat` 文件被添加到根 cgroup
112+
中,为了方便使用,系统层面的 `cpu.stat` 文件被添加到根 CGroup
113113

114114
在 runc 文档中,不推荐使用低于 5.2 的内核,因为其缺少冻结特性。
115115

116116
<!--
117117
## Pressure Stall Information (PSI) {#requirements-psi}
118118
119-
[Pressure Stall Information](/docs/reference/instrumentation/node-metrics#psi) is supported in Linux kernel versions 4.20 and up.
119+
[Pressure Stall Information](/docs/reference/instrumentation/understand-psi-metrics/) is supported in Linux kernel versions 4.20 and up,
120+
but requires the following configuration:
120121
-->
121122
## 压力阻塞信息(PSI){#requirements-psi}
122123

123-
Linux 内核 v4.20 及更高版本支持[压力阻塞信息](/zh-cn/docs/reference/instrumentation/node-metrics#psi)
124+
Linux 内核 v4.20 及更高版本支持[压力阻塞信息](/zh-cn/docs/reference/instrumentation/node-metrics#psi)
125+
但需要以下配置:
126+
127+
<!--
128+
- The kernel must be compiled with the `CONFIG_PSI=y` option.
129+
Most modern distributions enable this by default.
130+
You can check your kernel's configuration by running `zgrep CONFIG_PSI /proc/config.gz`.
131+
- Some Linux distributions may compile PSI into the kernel but disable it by default.
132+
If so, you need to enable it at boot time by adding the `psi=1` parameter to the kernel command line.
133+
-->
134+
- 内核必须使用 `CONFIG_PSI=y` 选项进行编译(大多数现代发行版默认启用此选项)。
135+
你可以通过运行 `zgrep CONFIG_PSI /proc/config.gz` 来检查内核的配置。
136+
- 某些 Linux 发行版可能会将 PSI 编译进内核,但默认情况下是禁用的。
137+
如果是这样,你需要在启动时通过向内核命令行添加 `psi=1` 参数来启用它。
124138

125139
<!--
126140
## Other kernel requirements {#requirements-other}
@@ -168,9 +182,9 @@ in the _Longterm_ category.
168182

169183
你可以在 [kernel.org](https://www.kernel.org/category/releases.html) 找到活动的内核版本。
170184

171-
通常会提供多个 __长期维护__ 内核版本,用于将 Bug 修复反向移植到较旧的内核树。
185+
通常会提供多个**长期维护**内核版本,用于将 Bug 修复反向移植到较旧的内核树。
172186
特别是对于较旧的树,只有重要的 Bug 修复才会被应用到此类内核,这些内核通常不会频繁发布新版本。
173-
请参阅 Linux 内核网站,了解 _Longterm_ 类别中的[发布列表](https://www.kernel.org/category/releases.html)
187+
请参阅 Linux 内核网站,了解 **Longterm** 类别中的[发布列表](https://www.kernel.org/category/releases.html)
174188

175189
## {{% heading "whatsnext" %}}
176190

@@ -179,6 +193,6 @@ in the _Longterm_ category.
179193
- Allow running kube-proxy with in [nftables mode](/docs/reference/networking/virtual-ips/#proxy-mode-nftables).
180194
- Read more information in [cgroups v2](/docs/concepts/architecture/cgroups/).
181195
-->
182-
- 查阅 [sysctls](/zh-cn/docs/tasks/administer-cluster/sysctl-cluster/) 以获取更多细节。
196+
- 查阅 [sysctl](/zh-cn/docs/tasks/administer-cluster/sysctl-cluster/) 以获取更多细节。
183197
- 允许在 [nftables 模式](/zh-cn/docs/reference/networking/virtual-ips/#proxy-mode-nftables)下运行 kube-proxy。
184-
- 参阅 [cgroups v2](/zh-cn/docs/concepts/architecture/cgroups/)
198+
- 参阅 [CGroup v2](/zh-cn/docs/concepts/architecture/cgroups/)

0 commit comments

Comments
 (0)