-
Notifications
You must be signed in to change notification settings - Fork 459
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 references to other volumes (eg. PVCs) for instrumention auto-inject #3267
Comments
I actually would like tackling this myself + opening a PR, but would like to hear your opinions/suggestions for the overall feature. 🙂 |
I think those should be two independent configurations. Not a replacement.
It is more or less what the operator is currently doing, right? It creates the Volumen to inject the instrumentation. I don't get the |
Sorry, I meant to say that I considered these alternative workarounds, however I don't think they're good solutions. With my second bullet point, a workaround could be "forcing the user to change their environment," which means forcing the user to work with their cluster admins to change policies and increase the emptyDir size limit policy. However, that's not really a solution so that's why I opened this issue.
Yeah! I'm not against it, but I'm not sure about this edge case: When user provides a volume spec with a specific size + If both are defined, will this just throw an error? Or should the values somehow be merged? |
Yes, we can just do something in the validation webhook. |
Component(s)
auto-instrumentation
Is your feature request related to a problem? Please describe.
In an environment where you can't provision an emptyDir above ~150Mi (the size of the nodejs instrumentation), it's impossible to use auto-instrumentation, since the emptyDir would be too small to transfer the instrumentation from the injected init container to the main container.
Describe the solution you'd like
Changing the Instrumentation resource spec to replace
Instrumentation.spec.<lang>.volumeSizeLimit
with something more generic likeInstrumentation.spec.<lang>.volume
that references a Volume.This solution should allow a reference to a pre-existing or ephemeral volume help alleviate this issue.
Describe alternatives you've considered
I've also considered:
Additional context
No response
The text was updated successfully, but these errors were encountered: