Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR: loxilb-io/loxilb#921 updated cicd for LB with dport ranges #940

Merged
merged 1 commit into from
Jan 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
#921 updated cicd for LB with dport ranges
TrekkieCoder committed Jan 19, 2025
commit 5b5f989dad3ae11869944456e972a42b2b4ce06f
1 change: 1 addition & 0 deletions cicd/tcplb/config.sh
Original file line number Diff line number Diff line change
@@ -40,3 +40,4 @@ sleep 5
create_lb_rule llb1 20.20.20.1 --tcp=2020:8080 --endpoints=31.31.31.1:1,32.32.32.1:1,33.33.33.1:1
create_lb_rule llb1 10.10.10.254 --tcp=2020:8080 --endpoints=31.31.31.1:1,32.32.32.1:1,33.33.33.1:1
create_lb_rule llb1 10.10.10.3 --tcp=2020:8080 --endpoints=31.31.31.1:1,32.32.32.1:1,33.33.33.1:1
create_lb_rule llb1 20.20.20.2 --tcp=1000-2000:8080 --endpoints=31.31.31.1:1,32.32.32.1:1,33.33.33.1:1
7 changes: 4 additions & 3 deletions cicd/tcplb/validation.sh
Original file line number Diff line number Diff line change
@@ -7,7 +7,8 @@ $hexec l3ep3 node ../common/tcp_server.js server3 &

sleep 5
code=0
servIP=( "10.10.10.254" "20.20.20.1" "10.10.10.3" )
servIP=( "10.10.10.254" "20.20.20.1" "10.10.10.3" "20.20.20.2" )
servPort=( "2020" "2020" "2020" "1111" )
servArr=( "server1" "server2" "server3" )
ep=( "31.31.31.1" "32.32.32.1" "33.33.33.1" )
j=0
@@ -34,15 +35,15 @@ do
sleep 1
done

for k in {0..2}
for k in {0..3}
do
echo "Testing Service IP: ${servIP[k]}"
lcode=0
for i in {1..4}
do
for j in {0..2}
do
res=$($hexec l3h1 curl --max-time 10 -s ${servIP[k]}:2020)
res=$($hexec l3h1 curl --max-time 10 -s ${servIP[k]}:${servPort[k]})
echo $res
if [[ $res != "${servArr[j]}" ]]
then