From 67987a4432374b03753550c044a7ae5deff3e7b5 Mon Sep 17 00:00:00 2001 From: danbudris Date: Thu, 23 Sep 2021 17:29:43 -0400 Subject: [PATCH] add toleration to allow copy-from-host daemonset to run on CP nodes --- pkg/collect/copy_from_host.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/collect/copy_from_host.go b/pkg/collect/copy_from_host.go index 4c74d460..afdfbde7 100644 --- a/pkg/collect/copy_from_host.go +++ b/pkg/collect/copy_from_host.go @@ -126,6 +126,13 @@ func copyFromHostCreateDaemonSet(ctx context.Context, client kubernetes.Interfac }, }, }, + Tolerations: []corev1.Toleration{ + { + Key: "node-role.kubernetes.io/master", + Operator: "Exists", + Effect: "NoSchedule", + }, + }, Volumes: []corev1.Volume{ { Name: "host",