-
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
Disable service links to prevent environment variable conflict #1158
Comments
This improvement would fix the following open issue: |
TIL! Thank you for this information. Would you be open to sending a PR with this change? |
I don't know much about writing Go but I decided to give it a shot. The unit tests are the main challenge for me so it is likely I have made mistakes there. Getting some assistance from my work to verify the code works correctly before I put up a proper pull request but you can see my changes: |
I left a couple of comments there. You are certainly on track! |
Have someone from work helping solving the issues now. Hopefully have this done soon :) |
Want to thank @dackroyd for sorting out all the mistakes I made and assisting with resolving the issues you mentioned. |
We have an image and will deploy it tomorrow. Are you able to confirm the spec changes required in the operator to set a custom query image? |
Looks very good now! Once you confirm that it works as intended, do send a PR with that change. Not sure what you mean with your question though. |
Have just had confirmation that the unit tests pass. |
It is common to name the Jaeger agent service
jaeger-agent
. This forces Kubernetes to create an environment variableJAEGER_AGENT_PORT
as part of the service links. This conflicts with the an internal environmental variable used in the client library.https://github.com/jaegertracing/jaeger-client-go/blob/704ce2849e9abb8af82edb2a3375e9e163092427/config/config_env.go#L51
This will cause the query UI to crash with the following error:
If this variable is set it is meant to be
6831
but Kubernetes sets it to the first port listed in the service for the agent. Jaeger query UI does not expect this value.Service links can be disabled as part of the pod specification.
See also: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#pod-v1-core
By automatically setting
enableServiceLinks
tofalse
this edge case will no longer occur.This should be added to all deployment specifications created by the operator.
The text was updated successfully, but these errors were encountered: