Closed liruonian closed 2 days 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.
The examples are correct. Please read the doc you linked for an explanation of how sidecar containers work.
If an init container is created with its restartPolicy set to Always, it will start and remain running during the entire life of the Pod.
/close
@stmcginnis: Closing this issue.
This is a Bug Report
Problem: The goal is to showcase the YAML configuration for a sidecar, but what is actually shown is an initContainer.
Proposed Solution: Delete the redundant initContainer lines.
Page to Update: https://kubernetes.io/docs/concepts/workloads/pods/sidecar-containers/ ref: (https://raw.githubusercontent.com/kubernetes/website/main/content/en/examples/application/deployment-sidecar.yaml) (https://raw.githubusercontent.com/kubernetes/website/main/content/en/examples/application/job/job-sidecar.yaml)