@@ -28,20 +28,20 @@ Please see [the documentation section in doc/](doc/) for more details on command
2828```
2929# cat >/tmp/ipvsconf <<EOF
3030services:
31- - address: tcp://${host.eth0}:80
31+ - address: tcp://\ ${host.eth0}:7656
3232 sched: rr
3333 destinations:
34- - address: 10.50.0.1:${env.MYPORT}
34+ - address: 10.50.0.1:\ ${env.MYPORT}
3535 forward: nat
36- - address: 10.50.0.2:${env.MYPORT}
36+ - address: 10.50.0.2:\ ${env.MYPORT}
3737 forward: nat
3838EOF
3939
40- # MYPORT=8080 ipvsctl apply -f /tmp/ipvsconf
40+ # MYPORT=8080 ipvsctl --params-network --params-env apply -f /tmp/ipvsconf
4141
42- # ipvsctl get
42+ # ipvsctl geti
4343services:
44- - address: tcp://10.1.2.3:80
44+ - address: tcp://10.1.2.3:7656
4545 sched: rr
4646 destinations:
4747 - address: 10.50.0.2:8080
@@ -53,7 +53,7 @@ services:
5353IP Virtual Server version 1.2.1 (size=4096)
5454Prot LocalAddress:Port Scheduler Flags
5555 -> RemoteAddress:Port Forward Weight ActiveConn InActConn
56- TCP 10.1.2.3:80 rr
56+ TCP 10.1.2.3:7656 rr
5757 -> 10.50.0.1:8080 Masq 0 0 0
5858 -> 10.50.0.2:8080 Masq 0 0 0
5959
@@ -77,7 +77,9 @@ INFO Updated weight to 100 for service tcp://10.1.2.3:80/10.50.0.1:8080
7777This project builds correctly for Linux only.
7878
7979``` bash
80- $ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags=" -w -s" -v -o release/ipvsctl ipvsctl.go
80+ $ make
81+ $ release/ipvsctl --version
82+ 0.2.1
8183```
8284
8385## Test
@@ -112,4 +114,4 @@ $ bats .
112114## License
113115
114116(C) 2019 @aschmidt75 , Apache 2.0 license
115- except package ipvs, integrated from https://github.com/docker/libnetwork (C) 2015 Docker, Inc. Apache 2.0 license
117+ except package ipvs, integrated from https://github.com/docker/libnetwork (C) 2015 Docker, Inc. Apache 2.0 license
0 commit comments