Skip to content

Commit cd69b61

Browse files
committed
modifying docs for SidecarContainers beta graduation
Signed-off-by: Matthias Bertschy <[email protected]>
1 parent a83b56d commit cd69b61

File tree

4 files changed

+21
-7
lines changed

4 files changed

+21
-7
lines changed

content/en/docs/concepts/workloads/pods/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ Some Pods have {{< glossary_tooltip text="init containers" term_id="init-contain
111111
as well as {{< glossary_tooltip text="app containers" term_id="app-container" >}}.
112112
By default, init containers run and complete before the app containers are started.
113113

114-
{{< feature-state for_k8s_version="v1.28" state="alpha" >}}
114+
{{< feature-state for_k8s_version="v1.29" state="beta" >}}
115115

116-
Enabling the `SidecarContainers` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/)
116+
Enabled by default, the `SidecarContainers` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/)
117117
allows you to specify `restartPolicy: Always` for init containers.
118118
Setting the `Always` restart policy ensures that the init containers where you set it are
119119
kept running during the entire lifetime of the Pod.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,9 @@ validation error is thrown for any container sharing a name with another.
291291

292292
#### API for sidecar containers
293293

294-
{{< feature-state for_k8s_version="v1.28" state="alpha" >}}
294+
{{< feature-state for_k8s_version="v1.29" state="beta" >}}
295295

296-
Starting with Kubernetes 1.28 in alpha, a feature gate named `SidecarContainers`
296+
Enabled by default with Kubernetes 1.29, a feature gate named `SidecarContainers`
297297
allows you to specify a `restartPolicy` for init containers which is independent of
298298
the Pod and other init containers. Container [probes](/docs/concepts/workloads/pods/pod-lifecycle/#types-of-probe)
299299
can also be added to control their lifecycle.
@@ -376,4 +376,4 @@ Kubernetes, consult the documentation for the version you are using.
376376
* Read about [creating a Pod that has an init container](/docs/tasks/configure-pod-container/configure-pod-initialization/#create-a-pod-that-has-an-init-container)
377377
* Learn how to [debug init containers](/docs/tasks/debug/debug-application/debug-init-containers/)
378378
* Read about an overview of [kubelet](/docs/reference/command-line-tools-reference/kubelet/) and [kubectl](/docs/reference/kubectl/)
379-
* Learn about the [types of probes](/docs/concepts/workloads/pods/pod-lifecycle/#types-of-probe): liveness, readiness, startup probe.
379+
* Learn about the [types of probes](/docs/concepts/workloads/pods/pod-lifecycle/#types-of-probe): liveness, readiness, startup probe.

content/en/docs/concepts/workloads/pods/pod-lifecycle.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,19 @@ termination grace period _begins_. The behavior above is described when the
504504
feature gate `EndpointSliceTerminatingCondition` is enabled.
505505
{{</note>}}
506506

507+
{{<note>}}
508+
Starting from Kubernetes 1.29, if your Pod has one or more sidecar containers,
509+
the kubelet will wait until the last main containers has terminated before
510+
sending the TERM signal to the sidecar containers on reverse order
511+
of their declaration in the Pod spec.
512+
This is to ensure that sidecar containers can continue to serve the other
513+
containers in the Pod until they are terminated.
514+
Please note that slow termination of the main container will also delay the
515+
termination of the sidecar containers and may trigger emergency termination
516+
of the Pod if the grace period expires. In such cases, all remaining containers
517+
in the Pod will be terminated with SIGKILL simultaneously.
518+
{{</note>}}
519+
507520
1. When the grace period expires, the kubelet triggers forcible shutdown. The container runtime sends
508521
`SIGKILL` to any processes still running in any container in the Pod.
509522
The kubelet also cleans up a hidden `pause` container if that container runtime uses one.
@@ -584,4 +597,4 @@ for more details.
584597

585598
* For detailed information about Pod and container status in the API, see
586599
the API reference documentation covering
587-
[`status`](/docs/reference/kubernetes-api/workload-resources/pod-v1/#PodStatus) for Pod.
600+
[`status`](/docs/reference/kubernetes-api/workload-resources/pod-v1/#PodStatus) for Pod.

content/en/docs/reference/command-line-tools-reference/feature-gates.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,8 @@ For a reference to old feature gates that are removed, please refer to
187187
| `SELinuxMountReadWriteOncePod` | `true` | Beta | 1.28 | |
188188
| `SchedulerQueueingHints` | `false` | Alpha | 1.28 | |
189189
| `SecurityContextDeny` | `false` | Alpha | 1.27 | |
190-
| `SidecarContainers` | `false` | Alpha | 1.28 | |
190+
| `SidecarContainers` | `false` | Alpha | 1.28 | 1.28 |
191+
| `SidecarContainers` | `true` | Beta | 1.29 | |
191192
| `SizeMemoryBackedVolumes` | `false` | Alpha | 1.20 | 1.21 |
192193
| `SizeMemoryBackedVolumes` | `true` | Beta | 1.22 | |
193194
| `SkipReadOnlyValidationGCE` | `false` | Alpha | 1.28 | |

0 commit comments

Comments
 (0)