Originally forked from k8s-netperf but write in bash script.
- Kubernetes cluster should have 2 nodes at least.
- Fill in the
NODE_1
andNODE_2
variables in theeast-west.sh
script with the names of the nodes you want to test. - Because pod in service is random in nodes, so test to service can contain same node and different node.
kubectl apply -f https://raw.githubusercontent.com/anngdinh/k8s-netperf/main/k8s-netperf.yaml
curl -OL https://raw.githubusercontent.com/anngdinh/k8s-netperf/main/east-west.sh && chmod +x east-west.sh
Run test:
./east-west.sh
kubectl delete -f https://raw.githubusercontent.com/anngdinh/k8s-netperf/main/k8s-netperf.yaml --ignore-not-found
rm -f east-west.sh