Draining only makes sense if the node is online and functional, and you're preparing it for maintenance. If it's already down, just delete it. The pods on that node will be deleted too, when the node they are on goes away.
n
narrow-noon-75604
07/01/2024, 5:21 AM
Thanks @creamy-pencil-82913 for the fix. It is working fine. Actually I ran the rke2-uninstall.sh script on the worker node before deleting the worker node.
can you please let me know if the deletion works though I don't run rke2-uninstall.sh script form the worker node? (let's say the worker node is down and unreachable)
c
creamy-pencil-82913
07/01/2024, 5:20 PM
deleting the node from the cluster doesn’t do anything on the node itself, it just removes it from the cluster. if you want rke2 to actually be removed from disk on the node you would need to uninstall it yourself.
n
narrow-noon-75604
07/03/2024, 5:47 AM
Thanks @creamy-pencil-82913 for the explanation. It is very clear now