Skip to content

fix: retry on pod termination failure TDE-2017 - #1252

Merged
amfage merged 2 commits into
masterfrom
fix/retry-on-pod-termination-failure-tde-2017
Aug 10, 2026
Merged

fix: retry on pod termination failure TDE-2017#1252
amfage merged 2 commits into
masterfrom
fix/retry-on-pod-termination-failure-tde-2017

Conversation

@amfage

@amfage amfage commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Motivation

A change of behaviour (cause unknown but probably Karpenter or EKS upgrade) means that when a Spot Instance is interrupted, i.e. reclaimed by AWS, the pods are now aware of the grace period. Previously a pod would retry on on Error (the phase message was "pod deleted"). The new behaviour is to fail with Failure and a phase message of "Pod was terminated in response to imminent node shutdown."

Modifications

Change the default retryStrategy to handle the new behaviour by matching the failure message string. We cannot just use onFailure as that will also match intentional application failures.

Verification

Applied to NonProd environment and tested using AWS Fault Injection Service to simulate a Spot Instance interruption.

@amfage
amfage requested review from a team as code owners August 9, 2026 20:52
@amfage
amfage requested review from blacha, ctali and schmidtnz August 9, 2026 20:52
@amfage
amfage marked this pull request as draft August 9, 2026 20:58
@amfage
amfage marked this pull request as ready for review August 9, 2026 21:55
@amfage
amfage added this pull request to the merge queue Aug 10, 2026
Merged via the queue into master with commit f39983a Aug 10, 2026
4 checks passed
@amfage
amfage deleted the fix/retry-on-pod-termination-failure-tde-2017 branch August 10, 2026 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants