Skip to content

Commit a3bcac8

Browse files
authored
Merge pull request #41 from Hanna623/dev
Added DSR help option and fixed incorrect configuration examples
2 parents fdc225c + 0c9419a commit a3bcac8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/create/create_loadbalancer.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ func NewCreateLoadBalancerCmd(restOptions *api.RESTOptions) *cobra.Command {
157157
--mode value options
158158
onearm - LB put LB-IP as srcIP
159159
fullnat - LB put Service IP as scrIP
160+
dsr - LB in DSR mode allows return traffic to bypass the load balancer (only available with hash select)
160161
fullproxy - LB operating as a L7 proxy
161162
hostonearm - LB operating in host one-arm
162163
@@ -170,7 +171,7 @@ ex)
170171
loxicmd create lb 192.168.0.200 --udp=80:32015 --endpoints=10.212.0.1:1,10.212.0.2:1,10.212.0.3:1 --mark=10
171172
loxicmd create lb 192.168.0.200 --tcp=80:32015 --udp=80:32015 --endpoints=10.212.0.1:1,10.212.0.2:1,10.212.0.3:1
172173
loxicmd create lb 192.168.0.200 --select=hash --tcp=80:32015 --endpoints=10.212.0.1:1,10.212.0.2:1,10.212.0.3:1
173-
loxicmd create lb 192.168.0.200 --tcp=80:32015 --endpoints=10.212.0.1:1,10.212.0.2:1,10.212.0.3:1 --mode=dsr
174+
loxicmd create lb 192.168.0.200 --tcp=80:80 --endpoints=10.212.0.1:1,10.212.0.2:1,10.212.0.3:1 --mode=dsr --select=hash
174175
loxicmd create lb 192.168.0.200 --sctp=37412:38412 --secips=192.168.0.201,192.168.0.202 --endpoints=10.212.0.1:1,10.212.0.2:1,10.212.0.3:1
175176
loxicmd create lb 192.168.0.200 --tcp=80:32015 --endpoints=10.212.0.1:1,10.212.0.2:1,10.212.0.3:1 --sources=10.10.10.1/32
176177

0 commit comments

Comments
 (0)