From 974b0dc892cdc430bc83f8fa384fd1242de87e44 Mon Sep 17 00:00:00 2001 From: meliurwen Date: Wed, 2 Dec 2020 03:13:28 +0100 Subject: [PATCH] 9 replicas for iperf2 clients --- iperf2-k8s-flood.sh | 12 +++++++----- iperf2.yaml | 1 + 2 files changed, 8 insertions(+), 5 deletions(-) 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