Skip to content

Commit

Permalink
Merge pull request #395 from TrekkieCoder/main
Browse files Browse the repository at this point in the history
PR - gh-393 Support for NAT(UDP) fragmentation
  • Loading branch information
UltraInstinct14 authored Sep 16, 2023
2 parents a4857d9 + aa8e858 commit 506b4be
Show file tree
Hide file tree
Showing 11 changed files with 22,029 additions and 16 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/tcp-sanity-ubuntu-22.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ jobs:
- run: loxilb-ebpf/utils/mkllb_bpffs.sh
- run: sudo -E env "PATH=$PATH" make
- run: sudo -E env "PATH=$PATH" make test
- run: docker pull ghcr.io/loxilb-io/loxilb:latest
- run: docker run -u root --cap-add SYS_ADMIN --restart unless-stopped --privileged -dit -v /dev/log:/dev/log --name loxilb ghcr.io/loxilb-io/loxilb:latest
- run: pwd && ls && sudo -E env "PATH=$PATH" make docker-cp
- run: docker pull ghcr.io/loxilb-io/loxilb:latestu22
- run: docker run -u root --cap-add SYS_ADMIN --restart unless-stopped --privileged -dit -v /dev/log:/dev/log --name loxilb ghcr.io/loxilb-io/loxilb:latestu22
- run: pwd && ls && sudo -E env "PATH=$PATH" make docker-cp-ebpf
- run: docker exec -dit loxilb mkllb_bpffs
- run: id=`docker ps -f name=loxilb | cut -d " " -f 1 | grep -iv "CONTAINER"` && docker commit $id ghcr.io/loxilb-io/loxilb:latest
- run: id=`docker ps -f name=loxilb | cut -d " " -f 1 | grep -iv "CONTAINER"` && docker commit $id ghcr.io/loxilb-io/loxilb:latestu22
- run: docker stop loxilb && docker rm loxilb
- run: |
cd cicd/tcplb/
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/udp-sanity-ubuntu-22.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ jobs:
- run: loxilb-ebpf/utils/mkllb_bpffs.sh
- run: sudo -E env "PATH=$PATH" make
- run: sudo -E env "PATH=$PATH" make test
- run: docker pull ghcr.io/loxilb-io/loxilb:latest
- run: docker run -u root --cap-add SYS_ADMIN --restart unless-stopped --privileged -dit -v /dev/log:/dev/log --name loxilb ghcr.io/loxilb-io/loxilb:latest
- run: pwd && ls && sudo -E env "PATH=$PATH" make docker-cp
- run: docker pull ghcr.io/loxilb-io/loxilb:latestu22
- run: docker run -u root --cap-add SYS_ADMIN --restart unless-stopped --privileged -dit -v /dev/log:/dev/log --name loxilb ghcr.io/loxilb-io/loxilb:latestu22
- run: pwd && ls && sudo -E env "PATH=$PATH" make docker-cp-ebpf
- run: docker exec -dit loxilb mkllb_bpffs
- run: id=`docker ps -f name=loxilb | cut -d " " -f 1 | grep -iv "CONTAINER"` && docker commit $id ghcr.io/loxilb-io/loxilb:latest
- run: id=`docker ps -f name=loxilb | cut -d " " -f 1 | grep -iv "CONTAINER"` && docker commit $id ghcr.io/loxilb-io/loxilb:latestu22
- run: docker stop loxilb && docker rm loxilb
- run: |
cd cicd/udplb/
Expand Down
2 changes: 1 addition & 1 deletion cicd/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ hexist="$vrn$hn"
lxdocker="ghcr.io/loxilb-io/loxilb:latest"
var=$(lsb_release -r | cut -f2)
if [[ $var == *"22.04"* ]];then
lxdocker="ghcr.io/loxilb-io/loxilb:latestU22"
lxdocker="ghcr.io/loxilb-io/loxilb:latestu22"
fi

loxilbs=()
Expand Down
2 changes: 1 addition & 1 deletion cicd/k8s-calico-ipvs/node_scripts/loxilb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository -y "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt-get update
apt-get install -y docker-ce
docker run -u root --cap-add SYS_ADMIN --restart unless-stopped --privileged -dit -v /dev/log:/dev/log --net=host --name loxilb ghcr.io/loxilb-io/loxilb:latest --ka=out
docker run -u root --cap-add SYS_ADMIN --restart unless-stopped --privileged -dit -v /dev/log:/dev/log --net=host --name loxilb ghcr.io/loxilb-io/loxilb:latest
echo alias loxicmd=\"sudo docker exec -it loxilb loxicmd\" >> ~/.bashrc
echo alias loxilb=\"sudo docker exec -it loxilb \" >> ~/.bashrc

Expand Down
2 changes: 1 addition & 1 deletion cicd/k8s-calico-ipvs/yaml/kube-loxilb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ spec:
#- --monitor
#- --setBGP=64511
#- --extBGPPeers=50.50.50.1:65101,51.51.51.1:65102
- --setRoles=9.9.9.9
- --setRoles=0.0.0.0
#- --monitor
#- --setBGP
#- --setLBMode=1
Expand Down
Loading

0 comments on commit 506b4be

Please sign in to comment.