From 54804d21c4a2a2d3478e625855f44b9946147111 Mon Sep 17 00:00:00 2001 From: technofab Date: Fri, 1 Aug 2025 12:31:45 +0200 Subject: [PATCH] chore(nix-kubernetes): increase deletion/shutdown timeout this way the shutdown tasks, like "coder_shutdown" can take their time and not get killed instantly --- nix-kubernetes/kubernetes.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nix-kubernetes/kubernetes.nix b/nix-kubernetes/kubernetes.nix index 6ebb6dd..43aa124 100644 --- a/nix-kubernetes/kubernetes.nix +++ b/nix-kubernetes/kubernetes.nix @@ -17,7 +17,10 @@ "com.coder.workspace.name" = "\${data.coder_workspace.me.name}"; }; }; + # give the shutdown tasks enough time to run + timeouts.delete = "31m"; spec = { + termination_grace_period_seconds = 1800; affinity.pod_anti_affinity.preferred_during_scheduling_ignored_during_execution = { weight = 1; pod_affinity_term = {