-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
DNS services are not resolving properly #5613
Conversation
[test] |
Fixes #5154 |
Add tests to end to end to make sure short names still resolve? We currently have this:
Also test these?
|
actually, not sure shortnames will work unless we have search paths set up |
dns_test is pretty good. It's also very tolerant. I'd like to wait until On Mon, Nov 2, 2015 at 5:23 PM, Jordan Liggitt [email protected]
|
d5122fe
to
975adec
Compare
v1.0.6:
|
975adec
to
506fca8
Compare
@@ -72,8 +76,30 @@ func (b *ServiceResolver) Records(name string, exact bool) ([]msg.Service, error | |||
if len(segments) == 0 { | |||
return nil, nil | |||
} | |||
glog.V(4).Infof("Answering query %s:%t", dnsName, exact) | |||
switch base := segments[0]; base { | |||
case "pod": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where did this come from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kube added it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pointer to their stuff so we can be sure we're consistent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
506fca8
to
f3fa8fc
Compare
Port: 2346, | ||
}, | ||
{ | ||
Target: "other.e1.headless2.", | ||
Target: headless2IPHash + "._other._tcp.headless2.default.svc.cluster.local.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
citation needed
The change on Sept 15th changed how services resolved in the absence of search paths, which resulted in very long times to resolve DNS in some cases. Change the SRV record style to match upstream Kube (hash of pod ip) Add support for the "pod" range <IP>.namespace.pod.cluster.local resolves to <IP>. Update tests.
f3fa8fc
to
eb5c744
Compare
Evaluated for origin test up to eb5c744 |
continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/6696/) |
Any other comments? |
SRV records changed from |
Endpoint SRV records change from |
[merge] |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/6696/) (Image: devenv-rhel7_2637) |
Evaluated for origin merge up to eb5c744 |
The change on Sept 15th changed how services resolved in the absence
of search paths, which resulted in very long times to resolve DNS in
some cases.
This reduces search times to a few ms.
Fixes #5154
@liggitt