-
Notifications
You must be signed in to change notification settings - Fork 344
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
Inject sidecars from different namespaces #60
Comments
Duplicate of #24. |
@gregoryfranklin and all who expressed interest in this issue: if you have a concrete use case in mind, we'd really benefit from hearing about it. |
We have Jaeger installed in one namespace and applications using that Jaeger instance deployed in many other namespaces. At the moment, we inject the Jaeger agent by providing a common helm chart that includes templates for sidecars that our developers can include in their own helm chart. We also provide to our developers, a standard helm charts from common workloads (eg a Java webapp) that include the Jaeger agent. In other cases I've seen, this has been implemented by a Mutating Webhook Admission Controller acting on Pods. |
This is great feedback, @gregoryfranklin. Thanks! Have you considered adding yourselves to https://github.com/jaegertracing/jaeger/blob/master/ADOPTERS.md ? |
Sort of similar use case - If you use Istio it wants to deploy its own Jaeger instance that uses a deployment/service for the agent. If you want to use the Istio Jaeger instance but would rather use the sidecar for the agent instead of a central agent service, you'd need to be able to point the sidecar at the Jaeger instance over there. We took it a step further and deployed our own Jaeger in a central monitoring namespace via Jaeger Operator and pointed Istio at that... however we're now finding that we can't use the sidecar injection for the same reason - unable to point at the central instance. |
I'll add this feature to my queue, and I might implement it in the next couple of weeks or next month. Of course, this can move faster if someone is willing to contribute the code. I might be missing something obvious, but it shouldn't be that hard: it would require a new flag so that the owner of the operator can specify which namespaces to watch deployments for. Note that we currently use the same namespace when watching for new jaeger instances, so, it would probably require a split there, to use different watchers for different object types. |
Is this auto-injection feature of sidercars into pods from a different namespace than the jaeger-operator already implemented? I have jaeger-operator 2.6.0 installed with helm helm/charts@0007ebb Elasticsearch is a single container
The jaeger
However, the jaeger-agent sidecar is only injected in the deployments in the
If I deploy nginx into the
|
What's the value of your |
So it could be a problem in the helm chart helm/charts@0007ebb They are hard-coded https://github.com/helm/charts/blob/0007ebb1587b3858c0bfb25a2210824a86434d3f/stable/jaeger-operator/templates/deployment.yaml#L41-L44 |
i've set the WATCH_NAMESPACE env var to
However it still is not injecting the sidecar in another namespace. |
It's quite possible that Jaeger instances will live in one namespace and applications in another. We need a way then to inject sidecars into deployments from one namespace pointing to Jaeger instances in another namespace.
Tasks:
JaegerSpec
should have a list of namespaces the operator should watchThe text was updated successfully, but these errors were encountered: