From 8f9b8c52d6014ed7c4b984270392a7b0ceb120fc Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Tue, 19 Mar 2019 11:13:18 +0000 Subject: [PATCH] Add a dot to make DNS names absolute Kubernetes sets up a lengthy DNS search path, so any names are looked up multiple times. Adding a dot at the end tells the DNS resolver the name is absolute, and should not be tried against the search path. This will reduce pointless DNS lookups. --- examples/cri/ds.yaml | 2 +- examples/k8s/ds.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/cri/ds.yaml b/examples/cri/ds.yaml index a562715b5..bbb1431cc 100644 --- a/examples/cri/ds.yaml +++ b/examples/cri/ds.yaml @@ -27,7 +27,7 @@ spec: - '--probe.kubernetes=true' - '--probe.cri=true' - '--probe.cri.endpoint=unix:///var/run/crio/crio.sock' - - 'weave-scope-app.weave.svc.cluster.local:80' + - 'weave-scope-app.weave.svc.cluster.local.:80' env: - name: KUBERNETES_NODENAME valueFrom: diff --git a/examples/k8s/ds.yaml b/examples/k8s/ds.yaml index 5c83088e5..7b5d0bc12 100644 --- a/examples/k8s/ds.yaml +++ b/examples/k8s/ds.yaml @@ -30,7 +30,7 @@ spec: - '--probe.kubernetes.role=host' - '--probe.docker.bridge=docker0' - '--probe.docker=true' - - 'weave-scope-app.weave.svc.cluster.local:80' + - 'weave-scope-app.weave.svc.cluster.local.:80' image: weaveworks/scope:1.10.2 imagePullPolicy: IfNotPresent resources: