-
Notifications
You must be signed in to change notification settings - Fork 165
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
feature request - be able to specify trace container(s) at runtime #53
Comments
@dalehamel I think you mean specify the image for the trace runner right ? I changed the title to reflect that let me know if I misunderstood. I agree that there should be a way to just change the image at runtime, both for trace runner and the init container. Some users already reached telling me they weren't able to use kubectl trace without modifying the source to use an image that's behind their company proxy, this seems to be a solution to that too. Last but not least, users with a very specific setup for which we can't guess kernel headers might want to create an image with the kernel headers they need directly. |
Yeah this was about the trace container specifically, but I think should also apply to initContainer. The company proxy is definitely an obvious use-case here too, and it's also a solution for optimizing a container to already have headers (negating any need for the initContainer) Any thoughts on how to specify this? Re, flags, env vars, config file, etc? |
I think I would also like @leodido opinion about wether it should be a flag or something else. |
Atm we do not support environment variables. We could discuss whether to bind a environment variable to every flag we have. BTW I agree on the need to have:
Furthermore, as emerged in #48, I would also implement a flag to explicitly enable the usage of an init container.
P.S.: working on it. |
I think the fastest way to add this would be via a command line switch, but that would be cumbersome to type out.
To override the builtin values more persistently, reading from an environment variable or configmap (though, not sure where that would be stored) could also work. A local config file (does kubectl standardize this in any way?) would probably be best long-term, as there's some other hardcoded values such us number of retries that could also be tweaked.
For developers, this would also be nice to be able to quickly test locally-built images (should the need arise), or test out new versions of bpftrace/bcc with a custom build.
This would also make it easy to A/B test containers for performance, or to work-around bugs such as in #52 for #51
The text was updated successfully, but these errors were encountered: