-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Allow auth server to advertise a DNS alias #1793
Comments
@klizhentas we solved it with public_addr didn't we? |
yes fixed since 2.7 |
@darend we now allow you to do this by using |
re-assigning to myself to update the docs |
To change:
|
@kontsevoy A somewhat related question: if |
@sandstrom I am not 100% sure I understand your question. Perhaps I'll just explain what happens? If there's a single DNS name for an auth server which resolves to multiple IPs, Teleport will rely on the standard name resolution when establishing a connection which consists of the OS resolver and Golang standard library. If the 1st IP doesn't respond it should try the 2nd. |
@kontsevoy Got it, maybe I haven't understood how teleport works under the hood. It sounds like your system only try the IPs in the array one after another, and in those cases it shouldn't make a difference between:
If there aren't any differences with the two alternatives above, I'm very happy 😄 Aside: Some systems (e.g. elastic search) will load IPs from a config and then with some high-availability protocol they will ping them every X seconds making sure they're up. In such scenarios, it's great if the system will "load" all IPs that are returned from the DNS-query, not just the first one. If they only load the first one for each entry in the array and put that into the pool, you won't get any high-availability benefit from returning multiple IPs. I know this has been an issue with ElasticSearch, which is why I asked the question. |
Correct. Teleport uses round-robin internally for lists of servers and for single-server entries that resolve to multiple IPs it relies on the system resolver which should use round-robin as well (just run |
@kontsevoy Awesome, thanks! 🎉 |
Problem:
Unable to configure auth to advertise itself using an DNS alias as
advertise_ip
only allows IP addresses.Proposal
Allow auth to advertise a DNS alias or an IP address
Context
Deploying auth + proxy under kubernetes is difficult because the IP assigned to auth is dynamic. This then requires some tooling to properly configure both the
advertise_ip
for auth as well as theauthorized_servers
for proxy.Ideally one could:
teleport-auth.company.com:3025
auth_servers: teleport-auth.company.com:3025
The text was updated successfully, but these errors were encountered: