diff --git a/pkg/agent/manager/loadbalancer/loadbalancer.go b/pkg/agent/manager/loadbalancer/loadbalancer.go index 3c8104a..4c7325e 100644 --- a/pkg/agent/manager/loadbalancer/loadbalancer.go +++ b/pkg/agent/manager/loadbalancer/loadbalancer.go @@ -498,10 +498,11 @@ func (m *Manager) addLoadBalancer(svc *corev1.Service) error { livenessCheck: m.lbCache[cacheKey].ActCheck, lbMode: m.lbCache[cacheKey].LbMode, timeout: m.lbCache[cacheKey].Timeout, - secIPs: m.lbCache[cacheKey].SecIPs, - endpointIPs: endpointIPs, needPodEP: needPodEP, } + lbArgs.secIPs = append(lbArgs.secIPs, m.lbCache[cacheKey].SecIPs...) + lbArgs.endpointIPs = append(lbArgs.endpointIPs, endpointIPs...) + lbModel, err := m.makeLoxiLoadBalancerModel(&lbArgs, svc, port) if err != nil { return err