https://rancher.com/ logo
Title
s

stale-library-44155

12/20/2022, 12:01 PM
Hello All, I have registered one of my node as worker by using the following command
sudo docker run -d --privileged --restart=unless-stopped --net=host -v /etc/kubernetes:/etc/kubernetes -v /var/run:/var/run  rancher/rancher-agent:v2.x.xx --server <https://xxxxxx.xxxxxxx.com> --token xxxxxxxxxxxxxxxxxx --worker
Now i don't want that node as a worker and i would like to de register, can you please suggest me a command
a

agreeable-waiter-30020

12/20/2022, 12:19 PM
You should be able to delete the node from the Rancher UI. Rancher will run the command to clean up the node.
s

stale-library-44155

12/20/2022, 1:59 PM
In rancher UI i am not able to see the delete option, i am only seeing Drain & Cordon options
a

agreeable-waiter-30020

12/20/2022, 5:36 PM
Is this an imported cluster or a “custom” cluster?
s

stale-library-44155

12/20/2022, 6:12 PM
custom cluster
a

agreeable-waiter-30020

12/20/2022, 7:45 PM
OK. I thought there was an option to delete a node in a custom cluster if you viewed the cluster in the “Cluster Management” view.
s

stale-library-44155

12/21/2022, 1:07 PM
For me the cluster manager also not working, it is throwing 500 inter server error