mirror of https://github.com/linkerd/linkerd2.git
Kubernetes will do multiple DNS lookups for a name like `proxy-api.conduit.svc.cluster.local` based on the default search settings in /etc/resolv.conf for each container: 1. proxy-api.conduit.svc.cluster.local.conduit.svc.cluster.local. IN A 2. proxy-api.conduit.svc.cluster.local.svc.cluster.local. IN A 3. proxy-api.conduit.svc.cluster.local.cluster.local. IN A 4. proxy-api.conduit.svc.cluster.local. IN A We do not need or want this search to be done, so avoid it by making each name absolute by appending a period so that the first three DNS queries are skipped for each name. The case for `localhost` is even worse because we expect that `localhost` will always resolve to 127.0.0.1 and/or ::1, but this is not guaranteed if the default search is done: 1. localhost.conduit.svc.cluster.local. IN A 2. localhost.svc.cluster.local. IN A 3. localhost.cluster.local. IN A 4. localhost. IN A Avoid these unnecessary DNS queries by making each name absolute, so that the first three DNS queries are skipped for each name. Signed-off-by: Brian Smith <brian@briansmith.org> |
||
---|---|---|
.. | ||
testdata | ||
check.go | ||
check_test.go | ||
completion.go | ||
completion_test.go | ||
dashboard.go | ||
dashboard_test.go | ||
get.go | ||
get_test.go | ||
inject.go | ||
inject_test.go | ||
install.go | ||
install_test.go | ||
root.go | ||
stat.go | ||
stat_test.go | ||
tap.go | ||
tap_test.go | ||
test_helper.go | ||
version.go | ||
version_test.go |