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> |
||
---|---|---|
.. | ||
inject_emojivoto_deployment.golden.yml | ||
inject_emojivoto_deployment.input.yml | ||
inject_emojivoto_deployment_controller_name.golden.yml | ||
inject_emojivoto_deployment_controller_name.input.yml | ||
inject_emojivoto_deployment_hostNetwork_false.golden.yml | ||
inject_emojivoto_deployment_hostNetwork_false.input.yml | ||
inject_emojivoto_deployment_hostNetwork_true.golden.yml | ||
inject_emojivoto_deployment_hostNetwork_true.input.yml | ||
inject_gettest_deployment.bad.golden | ||
inject_gettest_deployment.bad.input.yml | ||
inject_gettest_deployment.good.golden.yml | ||
inject_gettest_deployment.good.input.yml | ||
install_default.golden | ||
install_output.golden | ||
stat_busy_output.golden | ||
stat_empty_output.golden | ||
stat_one_output.golden | ||
status_busy_output.golden | ||
tap_busy_output.golden | ||
tap_empty_output.golden |