[zh] Add compatibility-version and update 3 feature gates

pull/49247/head
windsonsea 2024-12-27 10:37:11 +08:00
parent 495abc80ad
commit dc7b88cd38
4 changed files with 102 additions and 0 deletions

View File

@ -0,0 +1,65 @@
---
title: Kubernetes 控制平面组件的兼容版本
content_type: concept
weight: 70
---
<!--
title: Compatibility Version For Kubernetes Control Plane Components
reviewers:
- jpbetz
- siyuanfoundation
content_type: concept
weight: 70
-->
<!-- overview -->
<!--
Since release v1.32, we introduced configurable version compatibility and
emulation options to Kubernetes control plane components to make upgrades
safer by providing more control and increasing the granularity of steps
available to cluster administrators.
-->
自 v1.32 版本发布以来,我们为 Kubernetes 控制平面组件引入了可配置的版本兼容性和仿真选项,
为集群管理员提供更多控制选项并增加可用的细粒度步骤来让升级更加安全。
<!-- body -->
<!--
## Emulated Version
The emulation option is set by the `--emulated-version` flag of control plane components.
It allows the component to emulate the behavior (APIs, features, ...) of an earlier version
of Kubernetes.
-->
## 仿真版本 {#emulated-version}
仿真选项通过控制平面组件的 `--emulated-version` 参数来设置。
此选项允许控制平面组件仿真 Kubernetes 早期版本的行为API、特性等
<!--
When used, the capabilities available will match the emulated version:
* Any capabilities present in the binary version that were introduced
after the emulation version will be unavailable.
* Any capabilities removed after the emulation version will be available.
-->
使用时,可用的功能将与仿真版本相匹配:
* 在仿真版本之后引入的所有功能在二进制版本中将不可用。
* 在仿真版本之后移除的所有功能将可用。
<!--
This enables a binary from a particular Kubernetes release to emulate the
behavior of a previous version with sufficient fidelity that interoperability
with other system components can be defined in terms of the emulated version.
-->
这使得特定 Kubernetes 版本的二进制文件能够以足够的精确度仿真之前某个版本的行为,
与其他系统组件的互操作性可以在仿真版本中进行定义。
<!--
The `--emulated-version` must be <= `binaryVersion`. See the help message of
the `--emulated-version` flag for supported range of emulated versions.
-->
`--emulated-version` 必须小于或等于 `binaryVersion`
有关支持的仿真版本范围,参阅 `--emulated-version` 参数的帮助信息。

View File

@ -0,0 +1,30 @@
---
title: SELinuxChangePolicy
content_type: feature_gate
_build:
list: never
render: false
stages:
- stage: alpha
defaultValue: false
fromVersion: "1.32"
---
<!--
Enables `spec.securityContext.seLinuxChangePolicy` field.
This field can be used to opt-out from applying the SELinux label to the pod
volumes using mount options. This is required when a single volume that supports
mounting with SELinux mount option is shared between Pods that have different
SELinux labels, such as a privileged and unprivileged Pods.
-->
启用 `spec.securityContext.seLinuxChangePolicy` 字段。
此字段可用于筛选不希望使用挂载选项来打上 SELinux 标签的 Pod 卷。
当支持使用 SELinux 挂载选项挂载的单个卷在带有不同 SELinux 标签的
Pod例如特权 Pod 和非特权 Pod之间共享时此字段是必需的。
<!--
Enabling the `SELinuxChangePolicy` feature gate requires the feature gate `SELinuxMountReadWriteOncePod` to
be enabled.
-->
想要启用 `SELinuxChangePolicy` 特性门控,需要先启用 `SELinuxMountReadWriteOncePod` 特性门控。

View File

@ -17,6 +17,9 @@ stages:
- stage: stable
defaultValue: true
fromVersion: "1.27"
toVersion: "1.31"
removed: true
---
<!--
Enables server-side field validation. This means the validation

View File

@ -13,6 +13,10 @@ stages:
- stage: beta
defaultValue: true
fromVersion: "1.22"
toVersion: "1.31"
- stage: stable
defaultValue: true
fromVersion: "1.32"
---
<!--
Enable kubelets to determine the size limit for