-
Notifications
You must be signed in to change notification settings - Fork 713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow init container modifications #2306
Comments
The |
@ferozsalam interesting. The current memory limit is set to 20Mi (#2186 and #2241). Which should normally be enough for that init container, afaik that's the first time we hear it's not. What memory limit are you applying as a workaround? Can you give more details about your Kubernetes environment? |
@sebgl I've done some testing and it's fine with 30Mi (potentially, lower, I didn't bother going below 10Mi increments). Regarding my k8s setup - it's a minikube instance on a desktop. Resources are ample though, and I'm typically able to run several dozen containers on it simultaneously. I have attached the output of |
@ferozsalam thanks, that's very useful.
|
I am sometimes observing the exact same problem on my minikube instance. Today, deploying my workload that includes an ECK-powered ES worked several dozen times just fine, now all of a sudden, the elastic-internal-init-filesystem init container gets OOMKilled all the time:
Having the option to overwrite selected aspects of the init container instead of having to copy the entire default definition and modify it (and thus possibly miss any changes that might be done by newer versions of the operator) would be really useful. |
Currently, if a user wants to change a small aspect of an init container (e.g. setting custom resource limits), they have to provide the full definition of the init container in the
podTemplate
.Presumably we do this to give users full control over how init containers are executed. However, there are a couple of UX issues worth considering:
initContainers
of thepodTemplate
is confusing. (Other sections in thepodTemplate
get merged whileinitContainers
simply get replaced if the container name matches a built-in container)The text was updated successfully, but these errors were encountered: