File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1645,7 +1645,7 @@ func (appMgr *Manager) updatePoolMembersForNodePort(
16451645 rsCfg * ResourceConfig ,
16461646 index int ,
16471647) (bool , string , string ) {
1648- if svc .Spec .Type == v1 .ServiceTypeNodePort {
1648+ if svc .Spec .Type == v1 .ServiceTypeNodePort || svc . Spec . Type == v1 . ServiceTypeLoadBalancer {
16491649 for _ , portSpec := range svc .Spec .Ports {
16501650 if portSpec .Port == svcKey .ServicePort {
16511651 log .Debugf ("Service backend matched %+v: using node port %v" ,
@@ -1657,7 +1657,7 @@ func (appMgr *Manager) updatePoolMembersForNodePort(
16571657 }
16581658 return true , "" , ""
16591659 } else {
1660- msg := fmt .Sprintf ("Requested service backend '%+v' not of NodePort type" ,
1660+ msg := fmt .Sprintf ("Requested service backend '%+v' not of NodePort or LoadBalancer type" ,
16611661 svcKey .ServiceName )
16621662 log .Debug (msg )
16631663 return false , "IncorrectBackendServiceType" , msg
You can’t perform that action at this time.
0 commit comments