-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
CrashLoopBackOff in cartservice when fs.inotify.max_user_instances is set to a relatively low number #1310
Comments
Potential fix/workaround: Since containers deployed via Helm are typically not for development purposes, there may not be a need to watch for changing files at all. According to this, the watching can be disabled altogether via an environment variable:
|
I could reproduce the error, and the suggestion fixed. |
Should we build this directly into the Dockerfile or as part of docker-compose.yml? I'm leaning towards doing this in the Dockerfile itself. |
If the fix is only implemented in |
Setting in the Dockerfile or directly in the code also sounds like a better approach to me. |
@puckpuck fix validated. I built the container using your branch, built the container, and deployed it to a cluster whose host's value was set to Deployed successfully; no CrashLoopBackOff. Thanks! |
Bug Report
Which version of the demo you are using? (please provide either a specific
commit
hash
or a specific
release).
Helm chart version: 0.26.0
Symptom
When deploying the opentelemetry-demo to Kubernetes using the Helm chart, the cart service has a watcher responsible for reloading when files are changed. In host systems where the
fs.inotify.max_user_instances
is set to a relatively low value, the container will crash loop with a log message similar to the following:This issue was originally posted to the Helm chart repo, and the reviewers asked that the issue be created here instead.
What is the expected behavior?
The cartservice container is running
What is the actual behavior?
The cartservice is failing with a state of CrashLookBackOff
Reproduce
Provision a Linux VM containing a default value for
fs.inotify.max_user_instances
that is a relatively low value such as128
.Or, explicitly set this value to a low number using something like:
Install a version of Kubernetes that is supported by the OTEL Demo Helm chart.
Deploy the OTEL Demo using its Helm Chart.
The text was updated successfully, but these errors were encountered: