mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-12 05:12:37 +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}"
|
kubectl create -f "${IPERF_DEPLOYMENT}"
|
||||||
|
|
||||||
# Check deployment creation
|
# Check deployment creation
|
||||||
local cmd="kubectl wait --for=condition=Available deployment/iperf3-server-deployment"
|
local cmd="kubectl wait --for=condition=Available deployment/iperf3-server-deployment --timeout=${wait_time}s"
|
||||||
waitForProcess "${wait_time}" "${sleep_time}" "${cmd}"
|
|
||||||
|
|
||||||
# Create DaemonSet
|
# Create DaemonSet
|
||||||
kubectl create -f "${IPERF_DAEMONSET}"
|
kubectl create -f "${IPERF_DAEMONSET}"
|
||||||
|
Loading…
Reference in New Issue
Block a user