Revise caption for multi-container example

What's being illustrated here is a volume that has the same lifecycle as
a Pod, so:
- don't use a PersistentVolume as the example
- highlight that the file puller is a sidecar

and give this aspect of the page its own heading.
pull/46529/head
Tim Bannister 2024-05-24 21:44:43 +01:00
parent 4c7accac1f
commit 32be09bea1
1 changed files with 3 additions and 4 deletions

View File

@ -48,6 +48,8 @@ A given Pod (as defined by a UID) is never "rescheduled" to a different node; in
that Pod can be replaced by a new, near-identical Pod, with even the same name if
desired, but with a different UID.
### Associated lifetimes
When something is said to have the same lifetime as a Pod, such as a
{{< glossary_tooltip term_id="volume" text="volume" >}},
that means that the thing exists as long as that specific Pod (with that exact UID)
@ -55,10 +57,7 @@ exists. If that Pod is deleted for any reason, and even if an identical replacem
is created, the related thing (a volume, in this example) is also destroyed and
created anew.
{{< figure src="/images/docs/pod.svg" title="Pod diagram" class="diagram-medium" >}}
A multi-container Pod that contains a file puller and a
web server that uses a persistent volume for shared storage between the containers.
{{< figure src="/images/docs/pod.svg" title="Figure 1." class="diagram-medium" caption="A multi-container Pod that contains a file puller [sidecar](/docs/concepts/workloads/pods/sidecar-containers/) and a web server. The Pod uses an [ephemeral `emptyDir` volume](/docs/concepts/storage/volumes/#emptydir) for shared storage between the containers." >}}
## Pod phase