From 34c6c3d9cd9d943c76ba5c9d622c7316bb716f98 Mon Sep 17 00:00:00 2001 From: Johannes Nicolai Date: Mon, 15 Feb 2021 01:33:01 +0100 Subject: [PATCH] Pod eviction policy examples (crashed nodes) (#308) * ... otherwise it will take 40 seconds (until a node is detected as unreachable) + 5 minutes (until pods are evicted from unreachable/crashed nodes) * pods stuck in "Terminating" status on unreachable nodes will only be freed once #307 gets merged --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index e43b35ed..fe4fadcf 100644 --- a/README.md +++ b/README.md @@ -529,6 +529,14 @@ spec: requests: cpu: "2.0" memory: "4Gi" + + # Timeout after a node crashed or became unreachable to evict your pods somewhere else (default 5mins) + tolerations: + - key: "node.kubernetes.io/unreachable" + operator: "Exists" + effect: "NoExecute" + tolerationSeconds: 10 + # If set to false, there are no privileged container and you cannot use docker. dockerEnabled: false # If set to true, runner pod container only 1 container that's expected to be able to run docker, too.