Merge pull request #32925 from mengjiao-liu/synx_change_runtime_containerd_zh

[zh]Sync debug-running-pod.md
pull/32934/head
Kubernetes Prow Robot 2022-04-14 03:56:45 -07:00 committed by GitHub
commit 108434f8b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -169,7 +169,7 @@ specify the `-i`/`--interactive` argument, `kubectl` will automatically attach
to the console of the Ephemeral Container. to the console of the Ephemeral Container.
```shell ```shell
kubectl debug -it ephemeral-demo --image=busybox --target=ephemeral-demo kubectl debug -it ephemeral-demo --image=busybox:1.28 --target=ephemeral-demo
``` ```
``` ```
@ -192,7 +192,7 @@ OCI runtime exec failed: exec failed: container_linux.go:346: starting container
如果你指定 `-i` 或者 `--interactive` 参数,`kubectl` 将自动挂接到临时容器的控制台。 如果你指定 `-i` 或者 `--interactive` 参数,`kubectl` 将自动挂接到临时容器的控制台。
```shell ```shell
kubectl debug -it ephemeral-demo --image=busybox --target=ephemeral-demo kubectl debug -it ephemeral-demo --image=busybox:1.28 --target=ephemeral-demo
``` ```
``` ```
@ -298,7 +298,7 @@ this scenario using `kubectl run`:
你可以使用 `kubectl run` 模拟这个场景: 你可以使用 `kubectl run` 模拟这个场景:
```shell ```shell
kubectl run myapp --image=busybox --restart=Never -- sleep 1d kubectl run myapp --image=busybox:1.28 --restart=Never -- sleep 1d
``` ```
<!-- <!--
Run this command to create a copy of `myapp` named `myapp-debug` that adds a Run this command to create a copy of `myapp` named `myapp-debug` that adds a
@ -366,7 +366,7 @@ that immediately exits:
为了模拟应用崩溃的场景,使用 `kubectl run` 命令创建一个立即退出的容器: 为了模拟应用崩溃的场景,使用 `kubectl run` 命令创建一个立即退出的容器:
``` ```
kubectl run --image=busybox myapp -- false kubectl run --image=busybox:1.28 myapp -- false
``` ```
<!-- <!--
@ -453,7 +453,7 @@ As an example, create a Pod using `kubectl run`:
下面的例子,用 `kubectl run`创建一个 Pod 下面的例子,用 `kubectl run`创建一个 Pod
``` ```
kubectl run myapp --image=busybox --restart=Never -- sleep 1d kubectl run myapp --image=busybox:1.28 --restart=Never -- sleep 1d
``` ```
<!-- <!--
Now use `kubectl debug` to make a copy and change its container image Now use `kubectl debug` to make a copy and change its container image