Backport DNSRR routing to v2.9 #3

Merged
rv merged 6 commits from rv/traefik:v2.9 into v2.9 2023-02-03 17:35:29 +00:00
Member

What does this PR do?

If swarm load balancing is enabled for a service that uses DNSRR then uses domain name to reach the server. Previously it failed with a warning.

Motivation

If swarm scoped macvlan networks are used then neither service nor its tasks contain an IP address and thus traefik ignores the network entirely. Using DNSRR and LBSwarm flag allows such networks to be used.

More

  • Behavior change needs to be documented.

Additional Notes

<!-- PLEASE READ THIS MESSAGE. Documentation fixes or enhancements: - for Traefik v2: use branch v2.9 - for Traefik v3: use branch master Bug fixes: - for Traefik v2: use branch v2.9 - for Traefik v3: use branch master Enhancements: - for Traefik v2: we only accept bug fixes - for Traefik v3: use branch master HOW TO WRITE A GOOD PULL REQUEST? https://doc.traefik.io/traefik/contributing/submitting-pull-requests/ --> ### What does this PR do? If swarm load balancing is enabled for a service that uses DNSRR then uses domain name to reach the server. Previously it failed with a warning. ### Motivation If swarm scoped macvlan networks are used then neither service nor its tasks contain an IP address and thus traefik ignores the network entirely. Using DNSRR and LBSwarm flag allows such networks to be used. ### More - [ ] Behavior change needs to be documented. ### Additional Notes <!-- Anything else we should know when reviewing? -->
rv added 5 commits 2023-02-03 16:58:30 +00:00
(cherry picked from commit 34c3effdde)
(cherry picked from commit 48f3e5cf1c)
(cherry picked from commit d1899ff250)

# Conflicts:
#	pkg/provider/docker/docker.go
(cherry picked from commit a2089c3a5d)
In DNSRR there is no Endpoint.VirtualIPs - use Spec.TaskTemplate.Networks
Some checks failed
continuous-integration/drone/pr Build is failing
8844a68a74
(cherry picked from commit 1c0b30963b)
rv added 1 commit 2023-02-03 17:13:36 +00:00
FIX Logging call.
All checks were successful
continuous-integration/drone/pr Build is passing
00de525eae
rv merged commit 2f1d7e806d into v2.9 2023-02-03 17:35:29 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SW/traefik#3