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 for POD in ${CLIENTS}; do
echo "[Run] iperf2-client pod ${POD}" 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 done
until [[ $(jobs | grep -v Running) != "" ]]; do #until [[ $(jobs | grep -v Running) != "" ]]; do
printf "." # printf "."
sleep 2 # sleep 2
done #done
printf " done\n" printf " done\n"
## </run> ## </run>

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

Loading…
Cancel
Save