I’ve been reading the documentation and am stuck on this concept from here:
A Pod can restart, causing re-execution of Init Containers, for the following reasons:
A user updates the PodSpec causing the Init Container image to change. App Container image changes only restart the app Container.
Can someone help explain this? How would updating the PodSpec cause the Init Container image to change, unless explicitly changed?
I am planning to use init containers to register the service with an API and dynamically generate a configuration file based on the response. I want to make sure I understand how pod restart behavior affects init-containers.