diff --git a/pkg/controller/service_lb.go b/pkg/controller/service_lb.go index e8e601babc8..806e720e9f3 100644 --- a/pkg/controller/service_lb.go +++ b/pkg/controller/service_lb.go @@ -93,6 +93,9 @@ func (c *Controller) genLbSvcDeployment(svc *corev1.Service) (dp *v1.Deployment) if svc.Spec.LoadBalancerIP != "" { podAnnotations[attchIpAnnotation] = svc.Spec.LoadBalancerIP } + if v, ok := svc.Annotations[util.LogicalSwitchAnnotation]; ok { + podAnnotations[util.LogicalSwitchAnnotation] = v + } dp = &v1.Deployment{ ObjectMeta: metav1.ObjectMeta{