Skip to content

Commit 314ed08

Browse files
authored
Merge pull request #48306 from awgrass/sidecar-temination-link
adding docs and link for sidecar termination behaviour
2 parents 8cb6eac + 48fd764 commit 314ed08

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

content/en/docs/concepts/workloads/pods/sidecar-containers.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ next init container from the ordered `.spec.initContainers` list.
6868
That status either becomes true because there is a process running in the
6969
container and no startup probe defined, or as a result of its `startupProbe` succeeding.
7070

71+
Upon Pod [termination](/docs/concepts/workloads/pods/pod-lifecycle/#termination-with-sidecars),
72+
the kubelet postpones terminating sidecar containers until the main application container has fully stopped.
73+
The sidecar containers are then shut down in the opposite order of their appearance in the Pod specification.
74+
This approach ensures that the sidecars remain operational, supporting other containers within the Pod,
75+
until their service is no longer required.
76+
7177
### Jobs with sidecar containers
7278

7379
If you define a Job that uses sidecar using Kubernetes-style init containers,

0 commit comments

Comments
 (0)