Skip to content

Commit 9cac510

Browse files
rysi3kTomasz Rychlewicz
andauthored
feature: allow to set dnsConfig + set default ndots to prevent unnecessary DNS calls (#40)
Co-authored-by: Tomasz Rychlewicz <tomasz.rychlewicz@prometheanworld.com>
1 parent 99d3765 commit 9cac510

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

templates/daemonset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ spec:
2828
hostPID: true
2929
hostNetwork: true
3030
dnsPolicy: ClusterFirstWithHostNet
31+
{{- with .Values.dnsConfig }}
32+
dnsConfig:
33+
{{- toYaml . | nindent 8 }}
34+
{{- end }}
3135
containers:
3236
# Collector container (non-privileged)
3337
- name: collector

values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@ rbac:
110110
# Service account name
111111
serviceAccountName: better-stack-collector
112112

113+
# set default ndots to prevent unnecessary DNS resolve calls
114+
dnsConfig:
115+
options:
116+
- name: ndots
117+
value: "2"
118+
113119
# Security context for pods
114120
securityContext:
115121
collector:

0 commit comments

Comments
 (0)