From df2ccb3b1669fec147da978caf3f0a5b9857edf1 Mon Sep 17 00:00:00 2001 From: meliurwen Date: Wed, 2 Dec 2020 02:41:09 +0100 Subject: [PATCH] Fixed iperf2 client name in script --- iperf2-k8s.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iperf2-k8s.sh b/iperf2-k8s.sh index 2050ff1..c9d74e6 100755 --- a/iperf2-k8s.sh +++ b/iperf2-k8s.sh @@ -16,7 +16,7 @@ done echo "Server is running" echo -CLIENTS=$(kubectl get pods -l app=iperf-client -o name | cut -d'/' -f2) +CLIENTS=$(kubectl get pods -l app=iperf2-client -o name | cut -d'/' -f2) for POD in ${CLIENTS}; do until $(kubectl get pod "${POD}" -o jsonpath='{.status.containerStatuses[0].ready}'); do @@ -35,7 +35,7 @@ echo ## ## -CLIENTS=$(kubectl get pods -l app=iperf-client -o name | cut -d'/' -f2) +CLIENTS=$(kubectl get pods -l app=iperf2-client -o name | cut -d'/' -f2) for POD in ${CLIENTS}; do HOST=$(kubectl get pod "${POD}" -o jsonpath='{.status.hostIP}')