diff --git a/iperf2-k8s-flood.sh b/iperf2-k8s-flood.sh index 4b7726e..0d1ce79 100755 --- a/iperf2-k8s-flood.sh +++ b/iperf2-k8s-flood.sh @@ -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" ## diff --git a/iperf2.yaml b/iperf2.yaml index 76b9ae9..10ccabf 100644 --- a/iperf2.yaml +++ b/iperf2.yaml @@ -69,6 +69,7 @@ metadata: labels: app: iperf2-client spec: + replicas: 9 selector: matchLabels: app: iperf2-client