Skip to content

Commit e721f4c

Browse files
committed
[zh] synchronize translate debug-running-pod.md
1 parent b28b1d3 commit e721f4c

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

content/zh/docs/tasks/debug-application-cluster/debug-running-pod.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ kubectl exec -it cassandra -- sh
110110
<!--
111111
## Debugging with an ephemeral debug container {#ephemeral-container}
112112
113-
{{< feature-state state="alpha" for_k8s_version="v1.22" >}}
113+
{{< feature-state state="beta" for_k8s_version="v1.23" >}}
114114
115115
{{< glossary_tooltip text="Ephemeral containers" term_id="ephemeral-container" >}}
116116
are useful for interactive troubleshooting when `kubectl exec` is insufficient
@@ -120,18 +120,14 @@ https://github.com/GoogleContainerTools/distroless).
120120
-->
121121
## 使用临时调试容器来进行调试 {#ephemeral-container}
122122

123-
{{< feature-state state="alpha" for_k8s_version="v1.22" >}}
123+
{{< feature-state state="beta" for_k8s_version="v1.23" >}}
124124

125125
当由于容器崩溃或容器镜像不包含调试程序(例如[无发行版镜像](https://github.com/GoogleContainerTools/distroless)等)
126126
而导致 `kubectl exec` 无法运行时,{{< glossary_tooltip text="临时容器" term_id="ephemeral-container" >}}对于排除交互式故障很有用。
127127

128128
<!--
129129
### Example debugging using ephemeral containers {#ephemeral-container-example}
130130
131-
The examples in this section require the `EphemeralContainers` [feature gate](
132-
/docs/reference/command-line-tools-reference/feature-gates/) enabled in your
133-
cluster and `kubectl` version v1.22 or later.
134-
135131
You can use the `kubectl debug` command to add ephemeral containers to a
136132
running Pod. First, create a pod for the example:
137133
@@ -145,12 +141,6 @@ images.
145141
-->
146142
## 使用临时容器来调试的例子 {#ephemeral-container-example}
147143

148-
{{< note >}}
149-
本示例需要你的集群已经开启 `EphemeralContainers`
150-
[特性门控](/zh/docs/reference/command-line-tools-reference/feature-gates/)
151-
`kubectl` 版本为 v1.22 或者更高。
152-
{{< /note >}}
153-
154144
你可以使用 `kubectl debug` 命令来给正在运行中的 Pod 增加一个临时容器。
155145
首先,像示例一样创建一个 pod:
156146

0 commit comments

Comments
 (0)