I am not sure I correctly understand your question, but in the topic of CAPI, draining is already automated. When scaling nodes, the nodes to be deleted will be drained. When using the RKE2 provider, you can configure a node drain timeout.
r
rough-night-37588
01/30/2025, 10:22 AM
I am looking to create an operator pattern that does above automatically. Like node rain operator. My question is if its already implemented by rancher or need to be developed ?
rough-night-37588
01/30/2025, 10:23 AM
Node drain*
f
fast-bear-60513
01/30/2025, 10:28 AM
In the context of CAPI, drain is already implemented and part of the machines lifecycle. If you need to implement custom drain logic however, I don't know at the moment if there is a solution for that