Can I use a sidecar as an init container? #839
Answered
by
FillZpp
BryanDollery
asked this question in
Q&A
-
To rephrase the question: is it ok for my sidecar to exit? I want to use all the features of the kruise sidecar capability to inject init containers. This will enable the init container without having to burden my engineers with specifying an init container in their deployment yaml files. So, is there a problem with doing this? I'm asking because I am having problems with my sidecar and I can't yet tell if it's something I've done or if kruise has a problem with my sidecar exiting early. TIA |
Beta Was this translation helpful? Give feedback.
Answered by
FillZpp
Dec 9, 2021
Replies: 1 comment 10 replies
-
(I'm not sure if I got all your questions) |
Beta Was this translation helpful? Give feedback.
10 replies
Answer selected by
FillZpp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
initContainers
in SidecarSet, so that it will inject the init containers when new pods created. Refer to this doc.(I'm not sure if I got all your questions)