linkerd2/cli/cmd
Brian Smith 517616a166
Make absolute names truly absolute. (#525)
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>
2018-03-07 09:46:03 -10:00
..
testdata Make absolute names truly absolute. (#525) 2018-03-07 09:46:03 -10:00
check.go Add --expected-version flag for conduit check command (#497) 2018-03-06 11:32:14 -08:00
check_test.go Remove kubectl dependency, validate k8s server version via api (#396) 2018-02-20 12:14:11 -08:00
completion.go Add -log-level flag for install and inject commands (#239) 2018-02-01 12:38:07 -08:00
completion_test.go Add shell completion command to cli (#97) 2017-12-28 14:24:06 -08:00
dashboard.go cli: refactor k8s config to support $KUBECONFIG with multiple paths (#482) 2018-02-28 12:13:09 -08:00
dashboard_test.go add check and friendly error if conduit dashboard is not installed (#289) 2018-02-19 09:28:56 -08:00
get.go Improve get/stat/tap help text by way of examples (#401) 2018-02-20 19:27:42 -08:00
get_test.go fix typo error (#153) 2018-01-16 11:20:21 -05:00
inject.go Make absolute names truly absolute. (#525) 2018-03-07 09:46:03 -10:00
inject_test.go Inject the conduit proxy into controller pod during conduit install (#365) 2018-02-23 13:55:46 -08:00
install.go Add Grafana to conduit install (#444) 2018-02-28 11:36:21 -08:00
install_test.go Add Grafana to conduit install (#444) 2018-02-28 11:36:21 -08:00
root.go cli: refactor k8s config to support $KUBECONFIG with multiple paths (#482) 2018-02-28 12:13:09 -08:00
stat.go Improve get/stat/tap help text by way of examples (#401) 2018-02-20 19:27:42 -08:00
stat_test.go Remove pod-level metrics from web and CLI (#304) 2018-02-08 19:07:10 -08:00
tap.go Improve get/stat/tap help text by way of examples (#401) 2018-02-20 19:27:42 -08:00
tap_test.go Move EosCtx to common for Tap and Telemetery (#204) 2018-01-24 15:48:00 -08:00
test_helper.go Add Grafana to conduit install (#444) 2018-02-28 11:36:21 -08:00
version.go Add --short and --client to CLI version command (#274) 2018-02-05 17:02:45 -05:00
version_test.go Update cli subcommands to print errors when encountered (#221) 2018-01-29 11:28:19 -08:00