-
Notifications
You must be signed in to change notification settings - Fork 12
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
EKS: load balancer services need to be resolved prior to registering #137
Comments
Update: for EKS this probably means finding the Elastic Load Balancer that backs that service. Will let you know my findings. Update-2: indeed. Tried to delete a Update-3: this has broader implications than we thought. Quoting from EKS -- emphasis mine:
So this would require a (lazy) watching mechanism to keep track of that change. |
Thanks for looking into this. Out of curiosity, what do we get when we do |
The output would still be the host name assigned to it, not an IP (the yaml extract I posted is from the real lb service, I just changed its name). e.g. NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR
sv3 LoadBalancer 10.100.59.182 abc123456def789abc-1085326388.us-west-1.elb.amazonaws.com 80:30344/TCP 16s app=sv3 |
Update: this has been done with the first solution (more or less) as it is the more scalable and convenient one (golang makes this super easy to do). Also it is the least invasive one (for the same scalability reason). |
AWS load balancers are DNS-based rather than IP-based. This means that we need to resolve those host names before registering endpoints to the service registry, as they only accept IPs. This commit introduces this change and allows the operator to work fine with EKS as well.
AWS load balancers are DNS-based rather than IP-based. This means that we need to resolve those host names before registering endpoints to the service registry, as they only accept IPs. This commit introduces this change and allows the operator to work fine with EKS as well.
When creating a service of type
LoadBalancer
in EKS, this service is assigned a hostname. See example:Obviously this won't be accepted by either Cloud Map or Service Directory, as they will only accept IP addresses, whether v4 or v6. So, in conclusion, whenever we see hostnames instead of IPs we need to resolve them in some way.
Specifically, for this scenario (EKS) I am thinking of these two ways of working:
Please provide ideas/comments/feedback if you think/know of an alternative way, as they are more than welcome!
Will keep posted.
The text was updated successfully, but these errors were encountered: