Skip to content

Commit bfade87

Browse files
committed
adding docs and link for sidecar termination behaviour
1 parent 2ab782f commit bfade87

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ 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), the kubelet postpones terminating sidecar containers until the main application container has fully stopped. The sidecar containers are then shut down in the opposite order of their appearance in the Pod specification. This approach ensures that the sidecars remain operational, supporting other containers within the Pod, until their service is no longer required.
72+
7173
### Jobs with sidecar containers
7274

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

0 commit comments

Comments
 (0)