You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all, I'm using NHC with a custom remediator. In some cases, my Kubernetes nodes are deleted, and as the documentation says here, my remediator will delete the remediation Custom Resource. The issue is that the NHC resource still shows these old remediations on its phase, reason, and inFlightRemediations:
Unfortunately that doc is outdated, sorry for that!
You don't need to delete the CR yourself anymore, but add a Condition to it, similar to the Succeeded condition. The condition type should be PermanentNodeDeletionExpected and its status True. You might want to use the const from here: https://github.com/medik8s/common/blob/main/pkg/conditions/conditions.go#L11.
I hope this helps! I will update the doc soonish 🙂
Thanks @slintes! a NHC upgrade and setting that condition fixed the issue :)
Just curious, what kind of remediator are you using? 🙂
I needed something like self-node-remediation, but I run k8s on-premise with a custom storage provider, so I require some extra storage operations in the remediation. I also have requirements for notifying remediations in Slack and JIRA, running some IPMI commands, etc, so I decided to use NHC but integrated with a custom operator (written by me) with all that special remediation logic :)
Hi all, I'm using NHC with a custom remediator. In some cases, my Kubernetes nodes are deleted, and as the documentation says here, my remediator will delete the remediation Custom Resource. The issue is that the NHC resource still shows these old remediations on its phase, reason, and inFlightRemediations:
this blocks all updates and deletion of the NHC resource, since the validating webhook thinks a remediation is still in progress and responds with:
am I missing a configuration to signal NHC of these deletions?
The text was updated successfully, but these errors were encountered: