mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-27 11:31:05 +00:00
metrics: Improve iperf timeout
The kubectl wait has a built in timeout of 30s, so wrapping it in waitForProcess, means we have 180/2 * 30 delay, which is much longer than intended, so just set the timeout directly. Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
parent
af4058fa82
commit
97151cce4e
@ -186,8 +186,7 @@ function iperf3_start_deployment() {
|
||||
kubectl create -f "${IPERF_DEPLOYMENT}"
|
||||
|
||||
# Check deployment creation
|
||||
local cmd="kubectl wait --for=condition=Available deployment/iperf3-server-deployment"
|
||||
waitForProcess "${wait_time}" "${sleep_time}" "${cmd}"
|
||||
local cmd="kubectl wait --for=condition=Available deployment/iperf3-server-deployment --timeout=${wait_time}s"
|
||||
|
||||
# Create DaemonSet
|
||||
kubectl create -f "${IPERF_DAEMONSET}"
|
||||
|
Loading…
Reference in New Issue
Block a user