File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
agent/manager/loadbalancer Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -401,7 +401,9 @@ func (m *Manager) addLoadBalancer(svc *corev1.Service) error {
401
401
402
402
// Check for loxilb specific annotations - NAT LB Mode
403
403
if lbm := svc .Annotations [lbModeAnnotation ]; lbm != "" {
404
- if lbm == "dsr" {
404
+ if lbm == "fullproxy" {
405
+ lbMode = 4
406
+ } else if lbm == "dsr" {
405
407
lbMode = 3
406
408
} else if lbm == "fullnat" {
407
409
lbMode = 2
@@ -493,6 +495,8 @@ func (m *Manager) addLoadBalancer(svc *corev1.Service) error {
493
495
epSelect = api .LbSelRrPersist
494
496
} else if eps == "lc" {
495
497
epSelect = api .LbSelLeastConnections
498
+ } else if eps == "n2" {
499
+ epSelect = api .LbSelN2
496
500
} else {
497
501
epSelect = api .LbSelRr
498
502
}
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ const (
19
19
LbSelRrPersist
20
20
// LbSelLeastConnections - select client based on least connections
21
21
LbSelLeastConnections
22
+ // LbSelN2 - select client based on N2 interface contents
23
+ LbSelN2
22
24
)
23
25
24
26
type LbMode int32
You can’t perform that action at this time.
0 commit comments