-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add initial (alpha) documentation about sidecar containers #41802
Conversation
4737fc1
to
8e7bae7
Compare
/sig node |
/cc |
LGTM label has been added. Git tree hash: e4105ebb73dc503576586b77f4a0944af241601b
|
content/en/docs/reference/command-line-tools-reference/feature-gates.md
Outdated
Show resolved
Hide resolved
/hold OK to unhold once squashed. |
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
LGTM label has been added. Git tree hash: 92203e45be15c15477f73f2f3d0bb2e1c2485e4b
|
/hold cancel It's squashed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could use polish but is good enough for alpha.
/lgtm
/approve
|
||
{{< feature-state for_k8s_version="v1.28" state="alpha" >}} | ||
|
||
Enabling the [SidecarContainers feature gate](/docs/reference/command-line-tools-reference/feature-gates/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(nit
Enabling the [SidecarContainers feature gate](/docs/reference/command-line-tools-reference/feature-gates/) | |
Enabling the SidecarContainers` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) |
{{< feature-state for_k8s_version="v1.28" state="alpha" >}} | ||
|
||
Enabling the [SidecarContainers feature gate](/docs/reference/command-line-tools-reference/feature-gates/) | ||
allows specifying a <code>restartPolicy=Always</code> to init containers, making sure they are |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
allows specifying a <code>restartPolicy=Always</code> to init containers, making sure they are | |
allows you to specify `restartPolicy: Always` for init containers. Setting the `Always` restart policy | |
ensures that the init containers where you set it are |
{{< feature-state for_k8s_version="v1.28" state="alpha" >}} | ||
|
||
Starting with Kubernetes 1.28 in alpha, a feature gate named `SidecarContainers` | ||
allows to specify a `restartPolicy` for init containers which is independent of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(nit)
allows to specify a `restartPolicy` for init containers which is independent of | |
allows you to specify a `restartPolicy` for init containers which is independent of |
The only difference is that they are not required to complete before the next | ||
init container starts, so a next init container will start after the current | ||
container status has been set to `Pod.status.containerStatuses[id of container].started=true` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only difference is that they are not required to complete before the next | |
init container starts, so a next init container will start after the current | |
container status has been set to `Pod.status.containerStatuses[id of container].started=true` | |
Compared to regular init containers, sidecar-style init containers continue to | |
run and the next init container can being starting once the kubet has set | |
the `started` container status for the sidecar-style init container to true. | |
That status either becomes true because there is a process running in the | |
container and no startup probe defined, or |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sftim, tzneal The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Thanks @sftim should I open a new PR with your suggestions? |
Please do if you've got the capacity for that. |
|
Add initial (alpha) documentation about sidecar containers
kubernetes/enhancements#753
kubernetes/kubernetes#116429