containers:
- name: iperf3-client
image: ubuntu:22.04
command: ["/bin/bash", "-c"]
args:
- |
apt update && apt install -y iperf3
NODE_LIST=(10.10.10.11 10.10.10.12 10.10.10.13)
NODE=${NODE_LIST[$((RANDOM % ${#NODE_LIST[@]}))]}
echo "Starting test to $NODE:32001"
iperf3 -c $NODE -p 32001 -t 300 -P 4