Skip to content

Commit 7929e74

Browse files
authored
Make executor clean up pods stuck terminating more quickly (#4697)
This config is used to determine when the executor needs to step in to force kill a pod - The timeout is in addition to the pods termination grace period second - The timeout is purely give k8s some time to act Waiting 30s for k8s to take action before calling force kill ourselves should be OK (we're only speeding up what k8s should be doing already) This should make cleaning up pods stuck in terminating states that k8s can't handle far more responsive Signed-off-by: JamesMurkin <jamesmurkin@hotmail.com>
1 parent 52e21ce commit 7929e74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/executor/config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ kubernetes:
4040
minimumPodAge: 3m
4141
failedPodExpiry: 10m
4242
maxTerminatedPods: 1000 # Should be lower than kube-controller-managed terminated-pod-gc-threshold (default 12500)
43-
stuckTerminatingPodExpiry: 1m
44-
podKillTimeout: 5m
43+
stuckTerminatingPodExpiry: 30s
44+
podKillTimeout: 30s
4545
minimumResourcesMarkedAllocatedToNonArmadaPodsPerNode:
4646
cpu: 1
4747
memory: 200Mi

0 commit comments

Comments
 (0)