9 replicas for iperf2 clients

master
Meliurwen 4 years ago
parent 5fd353e2c1
commit 974b0dc892
Signed by: meliurwen
GPG Key ID: 818A8B35E9F1CE10
  1. 12
      iperf2-k8s-flood.sh
  2. 1
      iperf2.yaml

@ -41,13 +41,15 @@ echo "Now all clients flood the server at the same time..."
for POD in ${CLIENTS}; do
echo "[Run] iperf2-client pod ${POD}"
kubectl exec -it "${POD}" -- iperf -c iperf2-server "$@" &> /dev/null &
#kubectl exec -it "${POD}" -- iperf -c iperf2-server "$@" &> /dev/null &
kubectl exec -it "${POD}" -- iperf -c iperf2-server "$@"
done
until [[ $(jobs | grep -v Running) != "" ]]; do
printf "."
sleep 2
done
#until [[ $(jobs | grep -v Running) != "" ]]; do
# printf "."
# sleep 2
#done
printf " done\n"
## </run>

@ -69,6 +69,7 @@ metadata:
labels:
app: iperf2-client
spec:
replicas: 9
selector:
matchLabels:
app: iperf2-client

Loading…
Cancel
Save