-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Drain Before Delete" support for RKE2 machine pools #35274
Comments
Root causeN/A What was fixed, or what changes have occurredAdded backend support for "Drain Before Delete" in rke2 for parity with rke. Until a corresponding UI change, the default behavior will be in line with rke1, which was to have "Drain Before Delete" be false by default. Areas or cases that should be testedNode pools that should not be drained will have the CAPI annotation What areas could experience regressions?N/A Are the repro steps accurate/minimal?N/A |
This should no longer be blocking rancher/dashboard#4448 |
Feature Testing Setup For validation Downstream Cluster Usecase: Someone has an already provisioned rke2 cluster. They want to add the "Drain Before Delete" feature to their nodes. Steps
Result Logs of Pod:
Reopened this on account of the above issues seen. |
Verified test cases on v2.6-head 8c785a1
|
@jakefhyde If we edit the cluster and enable drain on delete, the existing control plane nodes and worker are deleted and new nodes are created. This is not the case for etcd nodes. Is this expected? |
Adding |
A new flag should be supported on machine pool definition to designate if nodes should be drained before they are deleted. TBD if the option should be added to
provisioning.cattle.io.clusters -> spec.machinePools[i]
object or something else.Then, (de)provisioning flow should be updated to use the value of this flag to drain nodes before they are deleted if necessary.
The text was updated successfully, but these errors were encountered: