- Network bandwidth rate
- Network latency
- Packet loss rate
- iproute2
- sch_netem kernel module
Assuming you have already created your cluster with KIND https://kind.sigs.k8s.io/docs/user/quick-start/
and you want to emulate a network rate limited to 120mbps, with 10 ms of latency and 10% of packet loss
./netem.sh -r=120mbps -d=10ms -l=10
CLUSTER =
RATE = 120mbps
DELAY = 10ms
LOSS = 10
Cluster network configured correctly
if you want to remove all the network constraints, just reset the status:
./netem.sh --reset
Thanks for the implementation, I have a silly question. Can this work between two gateway nodes of two clusters (connected using submariner) ? I want to emulate the networking constraints between two clusters and not within the cluster