From 72cfcda5d15307790544f5ac7789c1db47784076 Mon Sep 17 00:00:00 2001 From: Tim Bannister Date: Tue, 14 Jan 2020 15:17:18 +0000 Subject: [PATCH] Tidy ephemeral containers concept (#18627) * Tidy ephemeral containers concept * Specify feature state --- .../docs/concepts/workloads/pods/ephemeral-containers.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/content/en/docs/concepts/workloads/pods/ephemeral-containers.md b/content/en/docs/concepts/workloads/pods/ephemeral-containers.md index 1fc060ef35..492027bd00 100644 --- a/content/en/docs/concepts/workloads/pods/ephemeral-containers.md +++ b/content/en/docs/concepts/workloads/pods/ephemeral-containers.md @@ -9,7 +9,7 @@ weight: 80 {{% 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 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 >}} The examples in this section require the `EphemeralContainers` [feature 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 >}} The examples in this section demonstrate how ephemeral containers appear in -the API. Users would normally use a `kubectl` plugin for troubleshooting that -would automate these steps. +the API. You would normally use a `kubectl` plugin for troubleshooting that +automates these steps. Ephemeral containers are created using the `ephemeralcontainers` subresource 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: ```shell +# Run this in a shell inside the "debugger" ephemeral container ps auxww ``` The output is similar to: