NodeRepair respects PDBs / terminationGracePeriodSeconds when nodepool does not have terminationGracePeriod set #2042
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-priority
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
Description
Observed Behavior:
I'm not sure whether this is a bug or not. I see that NodeRepair works okay with a terminationGracePeriod set in the NodePool, however if it isn't set it seems to respect PDBs and terminationGracePeriodSeconds which I thought was strange:
After stopping kubelet on a node, PDB blocking:
terminationGracePeriodSeconds blocking:
So the question is, is this a bug or are we advised to use this alongside
terminationGracePeriod
in the NodePool. Note that the reason why this is switched off is due to it hanging when nodes ended up in a broken state (kubelet not posting status due to exhausted CPU resources) and ideally I think we'd like to set this differently for each consolidation reasonExpected Behavior:
Removes node without
terminationGracePeriod
kicking inReproduction Steps (Please include YAML):
Versions:
1.2.1
kubectl version
):1.30
The text was updated successfully, but these errors were encountered: