@@ -110,7 +110,7 @@ kubectl exec -it cassandra -- sh
110
110
<!--
111
111
## Debugging with an ephemeral debug container {#ephemeral-container}
112
112
113
- {{< feature-state state="alpha " for_k8s_version="v1.22 " >}}
113
+ {{< feature-state state="beta " for_k8s_version="v1.23 " >}}
114
114
115
115
{{< glossary_tooltip text="Ephemeral containers" term_id="ephemeral-container" >}}
116
116
are useful for interactive troubleshooting when `kubectl exec` is insufficient
@@ -120,18 +120,14 @@ https://github.com/GoogleContainerTools/distroless).
120
120
-->
121
121
## 使用临时调试容器来进行调试 {#ephemeral-container}
122
122
123
- {{< feature-state state="alpha " for_k8s_version="v1.22 " >}}
123
+ {{< feature-state state="beta " for_k8s_version="v1.23 " >}}
124
124
125
125
当由于容器崩溃或容器镜像不包含调试程序(例如[ 无发行版镜像] ( https://github.com/GoogleContainerTools/distroless ) 等)
126
126
而导致 ` kubectl exec ` 无法运行时,{{< glossary_tooltip text="临时容器" term_id="ephemeral-container" >}}对于排除交互式故障很有用。
127
127
128
128
<!--
129
129
### Example debugging using ephemeral containers {#ephemeral-container-example}
130
130
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
-
135
131
You can use the `kubectl debug` command to add ephemeral containers to a
136
132
running Pod. First, create a pod for the example:
137
133
@@ -145,12 +141,6 @@ images.
145
141
-->
146
142
## 使用临时容器来调试的例子 {#ephemeral-container-example}
147
143
148
- {{< note >}}
149
- 本示例需要你的集群已经开启 ` EphemeralContainers `
150
- [ 特性门控] ( /zh/docs/reference/command-line-tools-reference/feature-gates/ ) ,
151
- ` kubectl ` 版本为 v1.22 或者更高。
152
- {{< /note >}}
153
-
154
144
你可以使用 ` kubectl debug ` 命令来给正在运行中的 Pod 增加一个临时容器。
155
145
首先,像示例一样创建一个 pod:
156
146
0 commit comments