You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/zh/docs/tasks/debug-application-cluster/debug-running-pod.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,7 +135,7 @@ The examples in this section require the `EphemeralContainers` [feature gate](
135
135
/docs/reference/command-line-tools-reference/feature-gates/) enabled in your
136
136
cluster and `kubectl` version v1.18 or later.
137
137
138
-
You can use the `kubectl alpha debug` command to add ephemeral containers to a
138
+
You can use the `kubectl debug` command to add ephemeral containers to a
139
139
running Pod. First, create a pod for the example:
140
140
141
141
```shell
@@ -154,7 +154,7 @@ images.
154
154
`kubectl` 版本为 v1.18 或者更高。
155
155
{{< /note >}}
156
156
157
-
你可以使用 `kubectl alpha debug` 命令来给正在运行中的 Pod 增加一个临时容器。
157
+
你可以使用 `kubectl debug` 命令来给正在运行中的 Pod 增加一个临时容器。
158
158
首先,像示例一样创建一个 pod:
159
159
160
160
```shell
@@ -177,12 +177,12 @@ kubectl exec -it ephemeral-demo -- sh
177
177
OCI runtime exec failed: exec failed: container_linux.go:346: starting container process caused "exec: \"sh\": executable file not found in $PATH": unknown
178
178
```
179
179
180
-
You can instead add a debugging container using `kubectl alpha debug`. If you
180
+
You can instead add a debugging container using `kubectl debug`. If you
181
181
specify the `-i`/`--interactive` argument, `kubectl` will automatically attach
@@ -201,11 +201,11 @@ kubectl exec -it ephemeral-demo -- sh
201
201
OCI runtime exec failed: exec failed: container_linux.go:346: starting container process caused "exec: \"sh\": executable file not found in $PATH": unknown
0 commit comments