Skip to content

Commit 4339ba7

Browse files
authored
Merge pull request #45407 from my-git9/patch-2745
[zh-cn] sync sidecar-containers
2 parents 405c063 + 5c7db0e commit 4339ba7

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

content/zh-cn/docs/concepts/workloads/pods/sidecar-containers.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ weight: 50
1010
-->
1111

1212
<!-- overview -->
13-
{{< feature-state for_k8s_version="v1.28" state="alpha" >}}
13+
{{< feature-state for_k8s_version="v1.29" state="beta" >}}
1414

1515
<!--
1616
Sidecar containers are the secondary containers that run along with the main
@@ -28,7 +28,7 @@ security, or data synchronization, without directly altering the primary applica
2828
<!--
2929
## Enabling sidecar containers
3030
31-
Starting with Kubernetes 1.28, a
31+
Enabled by default with Kubernetes 1.29, a
3232
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/) named
3333
`SidecarContainers` allows you to specify a `restartPolicy` for containers listed in a
3434
Pod's `initContainers` field. These restartable _sidecar_ containers are independent with
@@ -38,7 +38,7 @@ without effecting the main application container and other init containers.
3838
-->
3939
## 启用边车容器 {#enabling-sidecar-containers}
4040

41-
Kubernetes 1.28 开始,一个名为 `SidecarContainers`
41+
Kubernetes 1.29 默认启用,一个名为 `SidecarContainers`
4242
[特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)允许你为
4343
Pod 的 `initContainers` 字段中列出的容器指定 `restartPolicy`。这些可重启的**边车**容器与同一
4444
Pod 内的其他 [Init 容器](/zh-cn/docs/concepts/workloads/pods/init-containers/)及主应用容器相互独立。
@@ -105,14 +105,6 @@ Here's an example of a Job with two containers, one of which is a sidecar:
105105

106106
{{% code_sample language="yaml" file="application/job/job-sidecar.yaml" %}}
107107

108-
<!--
109-
By default, this feature is not available in Kubernetes. To avail this feature, you
110-
need to enable the [feature gate](/docs/reference/command-line-tools-reference/feature-gates/)
111-
named `SidecarContainers`.
112-
-->
113-
Kubernetes 默认不提供此特性。要使用此特性,你需要启用名为 `SidecarContainers`
114-
[特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)
115-
116108
<!--
117109
## Differences from regular containers
118110

0 commit comments

Comments
 (0)