- Prerequisite
- Clone Repository
- Build Images
- Generate Objectfile
- Build lb-backend
- Install Packages For Frontend
- Hands On
git clone https://github.com/REZ-OAN/lb-xdp-poc.git
Navigate to the lb-xdp-poc
directory (root directory for the application)
- For CLIENT-SERVER
make build_client
- For LOADBALANCER-SERVER
make build_lb
How i installed eBPF on docker image?
- For SERVER-BACKEND
make build_server
To interact with bpf_maps we have to convert the bpf
code into go and object file.github.com/cilium/ebpf/cmd/bpf2go
this module helps us to do this.Navigate to lb-backend
.
To generate execute the following command :
go generate
This will generate the necessary files for you.
You Will See these logs :
Navigate to lb-backend
. To build execute the following command :
go build
Navigate to lb-frontend
. To install necessary packages execute the following command:
npm i
To see the hands on demonstration visit HandsOn load_balancer_xdp