kubernetes-sigs / aws-load-balancer-controller

A Kubernetes controller for Elastic Load Balancers
https://kubernetes-sigs.github.io/aws-load-balancer-controller/
Apache License 2.0
3.93k stars 1.46k forks source link

Failed when used in aws region eu-west-2 (London) #563

Closed msh111 closed 6 years ago

msh111 commented 6 years ago

E0816 15:28:20.335901 1 albingresses.go:211] Failed to get associated Web ACL. Error: RequestError: send request failed caused by: Post https://waf-regional.eu-west-2.amazonaws.com/: dial tcp: lookup waf-regional.eu-west-2.amazonaws.com on 10.214.0.3:53: no such host I0816 15:28:20.335946 1 albingresses.go:101] Assembled 0 ingresses from existing AWS resources in 49.70894416s F0816 15:28:20.335962 1 albingresses.go:103] Assembled 0 ingresses from 1 load balancers

Release: 1.0-beta.6 Build: git-f740c293

guillaumerocq commented 6 years ago

As far as I can see, It is the same problem encountered in issue #439

This problem have also been seen in eu-west-3, where there's no WAF service (this error will be triggered anywhere this service is unavailable (availability here)).

As @rifelpet suggested, a prerequisite of ALB creation would be a check through SDK function (documented here); Resolving endpoint first, and taking action accordingly, would be interesting. I am working w/ my team on a PR to develop this option.

@bigkraig : Regarding session information, I am digging around to easily retrieve region (configured through AWS profile/credentials). Do you have any suggestions in order to achieve it easily ?

bigkraig commented 6 years ago

@grockeek I've been using the AWS_REGION environment variable, AFAIK that is the only way to get it unless the app also accepts a parameter and overrides the client. aws-cli works the same way. Thanks for looking into this one!

I'm going to close this one since this is the same as #439.