Closed roshanauthankar closed 1 month ago
This issue is currently awaiting triage.
SIG Docs takes a lead on issue triage for this website, but any Kubernetes member can accept issues by applying the triage/accepted
label.
The triage/accepted
label can be added by org members by writing /triage accepted
in a comment.
I think the existing example provided is correct. Kubernetes plans to use the initContainers
field for specifying init containers and sidecars, but it's worth noting that this feature is currently in beta.
/language en /sig node
Additionally, I see we have an existing issue https://github.com/kubernetes/website/issues/45406, which is addressing documenting the legacy method for defining sidecar containers in the same page.
/triage duplicate
Marking this as duplicate in favor of existing issue https://github.com/kubernetes/website/issues/45406 (Feel free to remove the label if this is incorrect.)
If you read the paragraph at the beginning of that section, it further explains how this is the correct way:
Kubernetes implements sidecar containers as a special case of init containers; sidecar containers remain running after Pod startup. This document uses the term regular init containers to clearly refer to containers that only run during Pod startup.
@stmcginnis I think a line mentioning how a sidecar container can be defined in the InitContainer section would help.
I think by mentioning lifecycle
, livenessProbe
, readinessProbe
, or startupProbe
fields in the InitContainer, Kubernetes understands it as a special case - sidecar container.
May be this can be documented.
Please follow up on the original issue - https://github.com/kubernetes/website/issues/45406. I recommend closing this duplicate issue as not planned (because it is a duplicate, and we are tracking the work via the earlier report).
Help is welcome; Kubernetes documentation is largely maintained by volunteers.
/close not-planned
We'll track work via the original issue. Help is welcome.
@sftim: Closing this issue, marking it as "Not Planned".
I think the example provided is incorrect. In the example, the sidecar container is listed under initContainers -
Documentation link: https://kubernetes.io/docs/concepts/workloads/pods/sidecar-containers/#sidecar-example