ECS task networking with awsvpc networking mode on EC2 exposes wrong ip #4353
Labels
area/provider/ecs
kind/bug/confirmed
a confirmed bug (reproducible).
priority/P2
need to be fixed in the future
resolution/declined
status/5-frozen-due-to-age
Do you want to request a feature or report a bug?
Bug
What did you do?
Start Traefik as an ECS Service with AWSVPC networking enabled on an EC2 cluster.
What did you expect to see?
I expected the Traefik to expose the backend service with the IP of the attached ENI as it should with AWSVPC networking enabled (similar to Fargate)
What did you see instead?
Traefik exposed the service with the IP of the EC2 instance.
Output of
traefik version
: (What version of Traefik are you using?)traefik:v1.7.6-alpine
https://github.com/containous/traefik/blob/ddf199566c0966b674e4a9af0902d1ddaad8eceb/old/provider/ecs/ecs.go#L288 The condition is made for
Fargate
specific, but not coveringawsvpc
networking in general.https://docs.aws.amazon.com/sdk-for-go/api/service/ecs/#Task
https://docs.aws.amazon.com/sdk-for-go/api/service/ecs/#Attachment
The text was updated successfully, but these errors were encountered: