Skip to content

Commit 67987a4

Browse files
committed
add toleration to allow copy-from-host daemonset to run on CP nodes
1 parent 1bdd3db commit 67987a4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/collect/copy_from_host.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,13 @@ func copyFromHostCreateDaemonSet(ctx context.Context, client kubernetes.Interfac
126126
},
127127
},
128128
},
129+
Tolerations: []corev1.Toleration{
130+
{
131+
Key: "node-role.kubernetes.io/master",
132+
Operator: "Exists",
133+
Effect: "NoSchedule",
134+
},
135+
},
129136
Volumes: []corev1.Volume{
130137
{
131138
Name: "host",

0 commit comments

Comments
 (0)