From 6dc5154a0aaaf2f8924d8e0a80bbf4db55552203 Mon Sep 17 00:00:00 2001 From: meliurwen Date: Wed, 2 Dec 2020 14:11:28 +0100 Subject: [PATCH] Reverting previous change --- iperf3-k8s.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iperf3-k8s.sh b/iperf3-k8s.sh index 1fe9149..e2588b0 100755 --- a/iperf3-k8s.sh +++ b/iperf3-k8s.sh @@ -44,7 +44,7 @@ timestamp="$(date +"%Y-%m-%d_%H-%M-%S")" for POD in ${CLIENTS}; do HOST=$(kubectl get pod "${POD}" -o jsonpath='{.status.hostIP}') if [[ "${arguments}" == *"-J"* ]]; then - kubectl exec -it "${POD}" -- iperf3 -c iperf3-server -T "${HOST}" "$@" "--logfile" "reports/${timestamp}-${HOST}-${POD}.json" + kubectl exec -it "${POD}" -- iperf3 -c iperf3-server -T "${HOST}" "$@" > "reports/${timestamp}-${HOST}-${POD}.json" echo "Report created: reports/${timestamp}-${HOST}-${POD}.json" else kubectl exec -it "${POD}" -- iperf3 -c iperf3-server -T "${HOST}" "$@"