Skip to content

Commit

Permalink
Merge pull request #940 from TrekkieCoder/main
Browse files Browse the repository at this point in the history
PR: #921 updated cicd for LB with dport ranges
  • Loading branch information
UltraInstinct14 authored Jan 19, 2025
2 parents 9a62846 + 5b5f989 commit 31e759e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions cicd/tcplb/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 31e759e

Please sign in to comment.