Simple iperf3 to measure network bandwidth from all nodes of a Kubernetes cluster.
Make sure you are using the correct cluster context before running this script: kubectl config current-context
./iperf3-k8s.sh
Any options supported by iperf3 can be added, e.g.:
./iperf3-k8s.sh -t 2
If you need NetworkPolicies you can install it:
kubectl apply -f network-policy.yaml
And cleanup afterwards:
kubectl delete -f network-policy.yaml
``