components/metallb: make sure controller pods run on controllers
@@ -66,6 +66,12 @@ func (c *component) RenderManifests() (map[string]string, error) {
c.ControllerNodeSelectors = map[string]string{}
}
c.ControllerNodeSelectors["beta.kubernetes.io/os"] = "linux"
+ c.ControllerNodeSelectors["node.kubernetes.io/master"] = ""
+
+ c.ControllerTolerations = append(c.SpeakerTolerations, util.Toleration{
+ Effect: "NoSchedule",
+ Key: "node-role.kubernetes.io/master",
+ })
t, err := util.RenderTolerations(c.SpeakerTolerations)
if err != nil {
