Skip to content

Commit 0adecd0

Browse files
ContainerRestartRules is beta now
1 parent 9092653 commit 0adecd0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,10 @@ To investigate the root cause of a `CrashLoopBackOff` issue, a user can:
240240

241241
When a container in your Pod stops, or experiences failure, Kubernetes can restart it.
242242
A restart isn't always appropriate; for example,
243-
{{< glossary_tooltip text="init containers" term_id="init-container" >}} run only once,
243+
{{< glossary_tooltip text="init containers" term_id="init-container" >}} run only once (if successful),
244244
during Pod startup.
245-
<!-- TODO reword when ContainerRestartRules graduates -->
246245
You can configure restarts as a policy that applies to all Pods, or using container-level configuration (for example: when you define a
247-
{{< glossary_tooltip text="sidecar container" term_id="sidecar-container" >}}).
246+
{{< glossary_tooltip text="sidecar container" term_id="sidecar-container" >}}) or define container-level override.
248247

249248
#### Container restarts and resilience {#container-restart-resilience}
250249

@@ -286,13 +285,13 @@ explains the behaviour of `init containers` when specify `restartpolicy` field o
286285
{{< feature-state
287286
feature_gate_name="ContainerRestartRules" >}}
288287

289-
If your cluster has the feature gate `ContainerRestartRules` enabled, you can specify
288+
If your cluster has the feature gate `ContainerRestartRules` enabled, you can specify
290289
`restartPolicy` and `restartPolicyRules` on _individual containers_ to override the Pod
291290
restart policy. Container restart policy and rules applies to {{< glossary_tooltip text="app containers" term_id="app-container" >}}
292291
in the Pod and to regular [init containers](/docs/concepts/workloads/pods/init-containers/).
293292

294293
A Kubernetes-native [sidecar container](/docs/concepts/workloads/pods/sidecar-containers/)
295-
has its container-level `restartPolicy` set to `Always`, and does not support `restartPolicyRules`.
294+
has its container-level `restartPolicy` set to `Always`, and does not support `restartPolicyRules`.
296295

297296
The container restarts will follow the same exponential backoff as pod restart policy described above.
298297
Supported container restart policies:

0 commit comments

Comments
 (0)