Init containers concept page is confusing - https://k8s.io/docs/concepts/workloads/pods/init-containers/
K8S v1.23 doc about init containers have these two lines: 1、“Changes to the init container spec are limited to the container image field. Altering an init container image field is equivalent to restarting the Pod.” 2、“The Pod will not be restarted when the init container image is changed, or the init container completion record has been lost due to garbage collection.”
so which one is true? altering an init container image will restart the pod or not?
/language en /kind support
/retitle Init containers concept page is confusing - https://k8s.io/docs/concepts/workloads/pods/init-containers/
There's a difference between changing the string that represents the URI of an image, and changing the image that the URI represents. I think the page is talking about 2 different things, but not very clearly.
(aside: Docker uses the term URI or URL for images, but the rest of the world of IT uses the term URI to mean web URIs)
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue as fresh with
/remove-lifecycle stale - Close this issue with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
/remove-lifecycle stale
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue as fresh with
/remove-lifecycle stale - Close this issue with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the issue is closed
You can:
- Mark this issue as fresh with
/remove-lifecycle rotten - Close this issue with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
/remove-lifecycle rotten
We can mention the Pod image field as - .spec.containers.image and can mention init container image as (changing image from the repository.)
/remove-kind support
/sig node /triage accepted /priority backlog
If someone can give me the correct idea behind each of those two statements, I would be glad to make the change to the docs and create a pull req.
/assign
Raised the PR for this. https://github.com/kubernetes/website/pull/47946