When heimdall's node died, the pod stayed bound to it for ~5 minutes because of Kubernetes' default 300s not-ready/unreachable tolerations, so recovery took ~7-8 minutes.
Changes (04-k8s-apps)
tolerationSeconds: 30 for node.kubernetes.io/unreachable and node.kubernetes.io/not-ready.
strategy: Recreate: heimdall is single-replica with an RWO Longhorn volume, so a rolling update could deadlock on a Multi-Attach if the new pod lands on another node.
Already applied / verified
Already live: the existing Deployment's defaulted rollingUpdate block was removed once with kubectl patch (the API server rejects Recreate while it is set), then pulumi up was run locally.
Tested by hard-stopping k3s-worker-2: eviction 30s after NotReady, volume attached on worker-3 ~50s later, heimdall back ~2-2.5 min after power-off.
The deploy on merge should be a no-op.
## Why
When heimdall's node died, the pod stayed bound to it for ~5 minutes because of Kubernetes' default 300s `not-ready`/`unreachable` tolerations, so recovery took ~7-8 minutes.
## Changes (`04-k8s-apps`)
- `tolerationSeconds: 30` for `node.kubernetes.io/unreachable` and `node.kubernetes.io/not-ready`.
- `strategy: Recreate`: heimdall is single-replica with an RWO Longhorn volume, so a rolling update could deadlock on a Multi-Attach if the new pod lands on another node.
## Already applied / verified
- Already live: the existing Deployment's defaulted `rollingUpdate` block was removed once with `kubectl patch` (the API server rejects `Recreate` while it is set), then `pulumi up` was run locally.
- Tested by hard-stopping k3s-worker-2: eviction 30s after NotReady, volume attached on worker-3 ~50s later, heimdall back ~2-2.5 min after power-off.
The deploy on merge should be a no-op.
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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Why
When heimdall's node died, the pod stayed bound to it for ~5 minutes because of Kubernetes' default 300s
not-ready/unreachabletolerations, so recovery took ~7-8 minutes.Changes (
04-k8s-apps)tolerationSeconds: 30fornode.kubernetes.io/unreachableandnode.kubernetes.io/not-ready.strategy: Recreate: heimdall is single-replica with an RWO Longhorn volume, so a rolling update could deadlock on a Multi-Attach if the new pod lands on another node.Already applied / verified
rollingUpdateblock was removed once withkubectl patch(the API server rejectsRecreatewhile it is set), thenpulumi upwas run locally.The deploy on merge should be a no-op.