|
|
@ -44,7 +44,7 @@ timestamp="$(date +"%Y-%m-%d_%H-%M-%S")" |
|
|
|
for POD in ${CLIENTS}; do |
|
|
|
for POD in ${CLIENTS}; do |
|
|
|
HOST=$(kubectl get pod "${POD}" -o jsonpath='{.status.hostIP}') |
|
|
|
HOST=$(kubectl get pod "${POD}" -o jsonpath='{.status.hostIP}') |
|
|
|
if [[ "${arguments}" == *"-J"* ]]; then |
|
|
|
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" |
|
|
|
echo "Report created: reports/${timestamp}-${HOST}-${POD}.json" |
|
|
|
else |
|
|
|
else |
|
|
|
kubectl exec -it "${POD}" -- iperf3 -c iperf3-server -T "${HOST}" "$@" |
|
|
|
kubectl exec -it "${POD}" -- iperf3 -c iperf3-server -T "${HOST}" "$@" |
|
|
|