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

Fix UDP loadbalancer tags not being used with Consul Catalog #9357

Merged
merged 7 commits into from Sep 21, 2022

Conversation

t3hchipmunk
Copy link
Contributor

@t3hchipmunk t3hchipmunk commented Sep 20, 2022

What does this PR do?

Fixes an issue of loadbalancer tags being used in Nomad jobs for Consul Catalog not picking up the port in the Consul Catalog addServerUDP. I used a lot of the addServerTCP code to realize the difference and correct for those differences.

Motivation

We recently ran into an issue of Traefik not picking up the port for our service written in Nomad using Consul Catalog (https://community.traefik.io/t/traefik-showing-port-0-for-service/15796). The port that Traefik would establish for the service was always 0. I was able to get it working by using a file configuration but that was insufficient for our use case as Nomad was in play.

More

  • Added/updated tests
  • Added/updated documentation

@t3hchipmunk t3hchipmunk changed the title Develop Correct issue of Consul Catalog UDP loadbalancer tags not being used Sep 20, 2022
@ldez ldez changed the title Correct issue of Consul Catalog UDP loadbalancer tags not being used fix: UDP loadbalancer tags not being used with Consul Catalog Sep 20, 2022
@ldez ldez added this to To review in v2 via automation Sep 20, 2022
@ldez ldez changed the base branch from master to v2.8 September 20, 2022 20:38
@ldez ldez added this to the 2.8 milestone Sep 20, 2022
Copy link
Member

@rtribotte rtribotte left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Copy link
Member

@ldez ldez left a comment

Choose a reason for hiding this comment

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

LGTM

@traefiker traefiker merged commit 83ae102 into traefik:v2.8 Sep 21, 2022
v2 automation moved this from To review to Done Sep 21, 2022
@kevinpollet kevinpollet changed the title fix: UDP loadbalancer tags not being used with Consul Catalog Fix UDP loadbalancer tags not being used with Consul Catalog Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
v2
Done
Development

Successfully merging this pull request may close these issues.

None yet

5 participants