diff --git a/charts/telegraf/templates/deployment.yaml b/charts/telegraf/templates/deployment.yaml index 81a046a7..987b3d04 100644 --- a/charts/telegraf/templates/deployment.yaml +++ b/charts/telegraf/templates/deployment.yaml @@ -28,6 +28,23 @@ spec: {{ toYaml .Values.podAnnotations | indent 8 }} {{- end }} spec: +{{- if .Values.dnsPolicy }} + dnsPolicy: +{{ toYaml .Values.dnsPolicy | indent 8}} +{{- end }} +{{- if .Values.dnsConfig.nameservers }} + dnsConfig: + nameservers: +{{ toYaml .Values.dnsConfig.nameservers | indent 10}} +{{- end }} +{{- if .Values.dnsConfig.searches }} + searches: +{{ toYaml .Values.dnsConfig.searches | indent 10}} +{{- end }} +{{- if .Values.dnsConfig.options }} + options: +{{ toYaml .Values.dnsConfig.options | indent 10}} +{{- end }} {{- if .Values.securityContext }} securityContext: {{ toYaml .Values.securityContext | indent 8 }} @@ -126,4 +143,4 @@ spec: name: {{ include "telegraf.fullname" . }} {{- if .Values.volumes }} {{ toYaml .Values.volumes | indent 6 }} - {{- end }} +{{- end }}