add toleration to allow copy-from-host daemonset to run on CP nodes

This commit is contained in:
danbudris
2021-09-23 17:29:43 -04:00
parent 1bdd3db8c5
commit 67987a4432

View File

@@ -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",