Skip to content

Commit

Permalink
Merge pull request #48306 from awgrass/sidecar-temination-link
Browse files Browse the repository at this point in the history
adding docs and link for sidecar termination behaviour
  • Loading branch information
k8s-ci-robot authored Oct 13, 2024
2 parents 8cb6eac + 48fd764 commit 314ed08
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions content/en/docs/concepts/workloads/pods/sidecar-containers.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ next init container from the ordered `.spec.initContainers` list.
That status either becomes true because there is a process running in the
container and no startup probe defined, or as a result of its `startupProbe` succeeding.

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.

### Jobs with sidecar containers

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

0 comments on commit 314ed08

Please sign in to comment.