bug(k8s-apps): fail heimdall over within ~30s of node loss
Deploy k8s Apps / Pulumi Deploy (pull_request) Skipped
Deploy k8s Apps / Pulumi Preview (pull_request) Successful in 47s

Default 300s not-ready/unreachable tolerations kept the pod bound to a dead node for ~5 min. Lower both to 30s, and switch to Recreate so a single-replica RWO pod never waits on a Multi-Attach during rollouts. Verified by stopping worker-2: pod running on worker-3 ~2 min later.

The existing Deployment's defaulted rollingUpdate block was removed once with kubectl patch so the API server accepts Recreate.
This commit is contained in:
kasun committed 2026-11-20 23:37:37 +01:00
1 parent 481ff9e7ac
commit b4d27c6546
1 file changed
+15
+15
View File
@@ -47,6 +47,7 @@ new k8s.apps.v1.Deployment(
}, },
spec: { spec: {
replicas: 1, replicas: 1,
strategy: { type: "Recreate" },
selector: { matchLabels: labels }, selector: { matchLabels: labels },
template: { template: {
metadata: { labels }, metadata: { labels },
@@ -70,6 +71,20 @@ new k8s.apps.v1.Deployment(
}, },
], ],
terminationGracePeriodSeconds: 5, terminationGracePeriodSeconds: 5,
tolerations: [
{
key: "node.kubernetes.io/unreachable",
operator: "Exists",
effect: "NoExecute",
tolerationSeconds: 30,
},
{
key: "node.kubernetes.io/not-ready",
operator: "Exists",
effect: "NoExecute",
tolerationSeconds: 30,
},
],
}, },
}, },
}, },