-
Notifications
You must be signed in to change notification settings - Fork 708
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
Use Pod DNS names instead of IP addresses for discovery and TLS certificates #2830
Comments
I started poking at this but won't be picking this up any time soon at least, leaving notes here in case it's helpful: One thing I think we will need to account for is that sset pods are given a name The other thing I noticed is that when ES starts up, it verifies it can resolve the name you tell it to publish. Currently our services do not publish not-ready pods, so the lookup fails and ES fails to start. We can change this on the service though and I do not see a downside to doing so. If people want different behavior they can create their own service. |
Just to update the discussion with the current state: When we moved to DNS based We should investigate if we can solve this problem by somehow avoiding this first DNS lookup or make sure it is always correct by relying on the |
I am closing this based on #2830 (comment) we can reopen if we want to reconsider and think it is worth taking another crack at it. |
Related to #2823.
We configure nodes to advertise and discover themselves through their IP addresses.
For that reason, we are likely to regenerate TLS certificates when a Pod is restarted since its IP address changed.
It does not help with this bug where Elasticsearch may serve a certificate with the wrong IP address associated.
Things would be simpler if we only manipulated Pod DNS names instead of IP addresses, and make more sense for TLS certificates which are usually bound to a DNS name, not an IP address.
Questions (to investigate):
<pod-name>
,<pod-name>.<namespace>
The text was updated successfully, but these errors were encountered: