From 18241707f2408e3e99ef6dd3fb4d61b88903b0e8 Mon Sep 17 00:00:00 2001 From: zhangzujian Date: Sat, 28 Aug 2021 14:27:10 +0800 Subject: [PATCH] initialize ipsets on cni server startup --- pkg/daemon/controller.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/daemon/controller.go b/pkg/daemon/controller.go index e730e1adee5..af39f9a681a 100644 --- a/pkg/daemon/controller.go +++ b/pkg/daemon/controller.go @@ -1070,6 +1070,11 @@ func (c *Controller) Run(stopCh <-chan struct{}) { return } + if err := c.setIPSet(); err != nil { + klog.Errorf("failed to set ipsets: %v", err) + return + } + klog.Info("Started workers") go wait.Until(c.loopOvn0Check, 5*time.Second, stopCh) go wait.Until(c.runAddOrUpdateProviderNetworkWorker, time.Second, stopCh)