From de39580db579696759c514ddf4831c4a77df6db9 Mon Sep 17 00:00:00 2001 From: Ildar Valiullin Date: Tue, 2 Jun 2020 10:25:36 +0300 Subject: [PATCH] added affinity field in daemonset Signed-off-by: Ildar Valiullin --- deployment/dcgm-exporter/templates/daemonset.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deployment/dcgm-exporter/templates/daemonset.yaml b/deployment/dcgm-exporter/templates/daemonset.yaml index b32bd2d..3329527 100644 --- a/deployment/dcgm-exporter/templates/daemonset.yaml +++ b/deployment/dcgm-exporter/templates/daemonset.yaml @@ -97,7 +97,10 @@ spec: initialDelaySeconds: 5 resources: {{- toYaml .Values.resources | nindent 12 }} - + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} {{- with .Values.tolerations }} tolerations: {{- toYaml . | nindent 8 }}