Skip to content

Commit 176ae9b

Browse files
committed
Do a dnsConfig ndots of 1 to minimise pointless dns lookups
1 parent b11e84c commit 176ae9b

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

helmfile/charts/kconmon/templates/agent/daemonset.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,19 @@ spec:
1616
template:
1717
metadata:
1818
annotations:
19-
atcloud.io/serviceTier: "3"
2019
sidecar.istio.io/inject: "false"
2120
labels:
2221
app: kconmon
2322
component: agent
2423
spec:
24+
dnsConfig:
25+
options:
26+
- name: ndots
27+
value: "1"
28+
searches:
29+
- {{ .Release.Namespace }}.svc.cluster.local
30+
- svc.cluster.local
31+
- cluster.local
2532
{{ if $.Values.config.nodeAntiAffinity }}
2633
affinity:
2734
nodeAffinity:

helmfile/charts/kconmon/templates/controller/deployment.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,19 @@ spec:
2020
template:
2121
metadata:
2222
annotations:
23-
atcloud.io/serviceTier: "3"
2423
sidecar.istio.io/inject: "false"
2524
labels:
2625
app: kconmon
2726
component: controller
2827
spec:
28+
dnsConfig:
29+
options:
30+
- name: ndots
31+
value: "1"
32+
searches:
33+
- {{ .Release.Namespace }}.svc.cluster.local
34+
- svc.cluster.local
35+
- cluster.loca
2936
serviceAccountName: kconmon
3037
containers:
3138
- name: agent

0 commit comments

Comments
 (0)