Skip to content
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

Agent service ports with correct protocol #579

Merged
merged 2 commits into from
Aug 5, 2019

Conversation

dnovvak
Copy link

@dnovvak dnovvak commented Aug 2, 2019

Fixes: #577

Copy link
Contributor

@jpkrohling jpkrohling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jpkrohling
Copy link
Contributor

@objectiser I think the general recommendation is to use the downward API to get the node's IP and configure the client to go directly to the node, so, this service here shouldn't be used much (at all?). Do you remember if and where this service is used?

In any case, the PR looks correct in that it's setting the ports to their expected protocols.

@jpkrohling
Copy link
Contributor

@dnovvak: the same question applies to you: what makes you use the service instead of the downward API to get the local node's IP?

@objectiser
Copy link
Contributor

@jpkrohling no where as far as I know.

@jpkrohling
Copy link
Contributor

@dnovvak could you please run make format and update this PR?

Signed-off-by: Dawid Nowak <[email protected]>
@dnovvak
Copy link
Author

dnovvak commented Aug 2, 2019

@jpkrohling Yes, just fixed formatting. It was not so easy on windows :) thanks for patience

@dnovvak: the same question applies to you: what makes you use the service instead of the downward API to get the local node's IP?

My use case is rather unusual and shouldn't be considered as important I think. I needed to expose agent outside k8s cluster (only for dev/test purpose, for a while). I tried to do this through nginx ingress (details here) but without success. After quick investigation I found that service for jaeger-agent did not expose UDP ports but all TCP. That's the story.

@codecov
Copy link

codecov bot commented Aug 5, 2019

Codecov Report

Merging #579 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #579      +/-   ##
==========================================
+ Coverage   91.26%   91.27%   +<.01%     
==========================================
  Files          73       73              
  Lines        3652     3655       +3     
==========================================
+ Hits         3333     3336       +3     
  Misses        227      227              
  Partials       92       92
Impacted Files Coverage Δ
pkg/service/agent.go 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d89f267...c68ca59. Read the comment docs.

1 similar comment
@codecov
Copy link

codecov bot commented Aug 5, 2019

Codecov Report

Merging #579 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #579      +/-   ##
==========================================
+ Coverage   91.26%   91.27%   +<.01%     
==========================================
  Files          73       73              
  Lines        3652     3655       +3     
==========================================
+ Hits         3333     3336       +3     
  Misses        227      227              
  Partials       92       92
Impacted Files Coverage Δ
pkg/service/agent.go 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d89f267...c68ca59. Read the comment docs.

@jpkrohling jpkrohling merged commit 54c0cf7 into jaegertracing:master Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Service jaeger-agent exposes all ports as TCP but some should be UDP
3 participants