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: Partially revert "chore: Remove support for legacy swarm" #2179

Merged
merged 1 commit into from Feb 28, 2023

Conversation

rhansen
Copy link
Collaborator

@rhansen rhansen commented Feb 17, 2023

This partially reverts commit 2494e20 by ignoring any network named "ingress" when searching for a container's IP address.

That commit was technically a backwards-incompatible change: Some users use nginx-proxy with Swarm mode even though it is not fully supported. In such cases nginx-proxy should ignore the ingress network, otherwise nginx will not be able to reach the server (container-to-container traffic apparently doesn't work over the Swarm ingress network).

The parts of that commit that examine the SwarmNode structure are not reverted here because docker-gen does not currently populate that structure—not even when both docker-gen and the service task container are running on the same manager node.

See discussion #2172

This partially reverts commit 2494e20
by ignoring any network named "ingress" when searching for a
container's IP address.

That commit was technically a backwards-incompatible change: Some
users use nginx-proxy with Swarm mode even though it is not fully
supported.  In such cases nginx-proxy should ignore the `ingress`
network, otherwise nginx will not be able to reach the
server (container-to-container traffic apparently doesn't work over
the Swarm `ingress` network).

The parts of that commit that examine the `SwarmNode` structure are
not reverted here because docker-gen does not currently populate that
structure -- not even when both docker-gen and the service task
container are running on the same manager node.
@rhansen rhansen requested a review from buchdag February 17, 2023 07:03
@rhansen
Copy link
Collaborator Author

rhansen commented Feb 24, 2023

Friendly ping @buchdag

@buchdag buchdag merged commit afd6544 into nginx-proxy:main Feb 28, 2023
@rhansen rhansen deleted the swarm branch February 28, 2023 09:58
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.

None yet

2 participants