Skip to content

Commit da6f537

Browse files
authored
Merge pull request #28026 from pacoxu/patch-5
use `kubectl debug` as `alpha debug` is deprecated
2 parents 96a1f1e + a4f7ed2 commit da6f537

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ The examples in this section require the `EphemeralContainers` [feature gate](
135135
/docs/reference/command-line-tools-reference/feature-gates/) enabled in your
136136
cluster and `kubectl` version v1.18 or later.
137137
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
139139
running Pod. First, create a pod for the example:
140140
141141
```shell
@@ -154,7 +154,7 @@ images.
154154
`kubectl` 版本为 v1.18 或者更高。
155155
{{< /note >}}
156156

157-
你可以使用 `kubectl alpha debug` 命令来给正在运行中的 Pod 增加一个临时容器。
157+
你可以使用 `kubectl debug` 命令来给正在运行中的 Pod 增加一个临时容器。
158158
首先,像示例一样创建一个 pod:
159159

160160
```shell
@@ -177,12 +177,12 @@ kubectl exec -it ephemeral-demo -- sh
177177
OCI runtime exec failed: exec failed: container_linux.go:346: starting container process caused "exec: \"sh\": executable file not found in $PATH": unknown
178178
```
179179
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
181181
specify the `-i`/`--interactive` argument, `kubectl` will automatically attach
182182
to the console of the Ephemeral Container.
183183
184184
```shell
185-
kubectl alpha debug -it ephemeral-demo --image=busybox --target=ephemeral-demo
185+
kubectl debug -it ephemeral-demo --image=busybox --target=ephemeral-demo
186186
```
187187
188188
```
@@ -201,11 +201,11 @@ kubectl exec -it ephemeral-demo -- sh
201201
OCI runtime exec failed: exec failed: container_linux.go:346: starting container process caused "exec: \"sh\": executable file not found in $PATH": unknown
202202
```
203203

204-
你可以改为使用 `kubectl alpha debug` 添加调试容器。
204+
你可以改为使用 `kubectl debug` 添加调试容器。
205205
如果你指定 `-i` 或者 `--interactive` 参数,`kubectl` 将自动挂接到临时容器的控制台。
206206

207207
```shell
208-
kubectl alpha debug -it ephemeral-demo --image=busybox --target=ephemeral-demo
208+
kubectl debug -it ephemeral-demo --image=busybox --target=ephemeral-demo
209209
```
210210

211211
```

0 commit comments

Comments
 (0)