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.
This commit is contained in:
Bryan Boreham
2019-03-19 11:13:18 +00:00
parent fc0d15a8af
commit 8f9b8c52d6
2 changed files with 2 additions and 2 deletions

View File

@@ -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:

View File

@@ -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: