mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
increase timeout
This commit is contained in:
parent
77733c2afd
commit
6daa2f2ef3
@ -291,9 +291,9 @@ func killPodNow(podWorkers PodWorkers, recorder record.EventRecorder) eviction.K
|
|||||||
}
|
}
|
||||||
|
|
||||||
// we timeout and return an error if we don't get a callback within a reasonable time.
|
// we timeout and return an error if we don't get a callback within a reasonable time.
|
||||||
// the default timeout is relative to the grace period (we settle on 2s to wait for kubelet->runtime traffic to complete in sigkill)
|
// the default timeout is relative to the grace period (we settle on 10s to wait for kubelet->runtime traffic to complete in sigkill)
|
||||||
timeout := int64(gracePeriod + (gracePeriod / 2))
|
timeout := int64(gracePeriod + (gracePeriod / 2))
|
||||||
minTimeout := int64(2)
|
minTimeout := int64(10)
|
||||||
if timeout < minTimeout {
|
if timeout < minTimeout {
|
||||||
timeout = minTimeout
|
timeout = minTimeout
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user