diff --git a/shared/kubernetes/provider.go b/shared/kubernetes/provider.go index 7802ca693..d7d034159 100644 --- a/shared/kubernetes/provider.go +++ b/shared/kubernetes/provider.go @@ -806,11 +806,11 @@ func (provider *Provider) ApplyMizuTapperDaemonSet(ctx context.Context, namespac agentContainer.WithResources(agentResources) nodeSelectorRequirement := applyconfcore.NodeSelectorRequirement() - nodeSelectorRequirement.WithKey("kubernetes.io/hostname") + nodeSelectorRequirement.WithKey("metadata.name") nodeSelectorRequirement.WithOperator(core.NodeSelectorOpIn) nodeSelectorRequirement.WithValues(nodeNames...) nodeSelectorTerm := applyconfcore.NodeSelectorTerm() - nodeSelectorTerm.WithMatchExpressions(nodeSelectorRequirement) + nodeSelectorTerm.WithMatchFields(nodeSelectorRequirement) nodeSelector := applyconfcore.NodeSelector() nodeSelector.WithNodeSelectorTerms(nodeSelectorTerm) nodeAffinity := applyconfcore.NodeAffinity()