Tidy ephemeral containers concept (#18627)
* Tidy ephemeral containers concept * Specify feature state
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
0adc7047a5
commit
72cfcda5d1
@@ -9,7 +9,7 @@ weight: 80
|
|||||||
|
|
||||||
{{% capture overview %}}
|
{{% capture overview %}}
|
||||||
|
|
||||||
{{< feature-state state="alpha" >}}
|
{{< feature-state state="alpha" for_k8s_version="v1.16" >}}
|
||||||
|
|
||||||
This page provides an overview of ephemeral containers: a special type of container
|
This page provides an overview of ephemeral containers: a special type of container
|
||||||
that runs temporarily in an existing {{< glossary_tooltip term_id="pod" >}} to accomplish user-initiated actions such
|
that runs temporarily in an existing {{< glossary_tooltip term_id="pod" >}} to accomplish user-initiated actions such
|
||||||
@@ -83,12 +83,12 @@ you can view processes in other containers.
|
|||||||
{{< note >}}
|
{{< note >}}
|
||||||
The examples in this section require the `EphemeralContainers` [feature
|
The examples in this section require the `EphemeralContainers` [feature
|
||||||
gate](/docs/reference/command-line-tools-reference/feature-gates/) to be
|
gate](/docs/reference/command-line-tools-reference/feature-gates/) to be
|
||||||
enabled and kubernetes client and server version v1.16 or later.
|
enabled, and Kubernetes client and server version v1.16 or later.
|
||||||
{{< /note >}}
|
{{< /note >}}
|
||||||
|
|
||||||
The examples in this section demonstrate how ephemeral containers appear in
|
The examples in this section demonstrate how ephemeral containers appear in
|
||||||
the API. Users would normally use a `kubectl` plugin for troubleshooting that
|
the API. You would normally use a `kubectl` plugin for troubleshooting that
|
||||||
would automate these steps.
|
automates these steps.
|
||||||
|
|
||||||
Ephemeral containers are created using the `ephemeralcontainers` subresource
|
Ephemeral containers are created using the `ephemeralcontainers` subresource
|
||||||
of Pod, which can be demonstrated using `kubectl --raw`. First describe
|
of Pod, which can be demonstrated using `kubectl --raw`. First describe
|
||||||
@@ -190,6 +190,7 @@ If process namespace sharing is enabled, you can see processes from all the cont
|
|||||||
For example, after attaching, you run `ps` in the debugger container:
|
For example, after attaching, you run `ps` in the debugger container:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
# Run this in a shell inside the "debugger" ephemeral container
|
||||||
ps auxww
|
ps auxww
|
||||||
```
|
```
|
||||||
The output is similar to:
|
The output is similar to:
|
||||||
|
|||||||
Reference in New Issue
Block a user