Skip to content

Add and Remove Master Node

1. Add Master Node

  • 1.1 Login rancher, and select maintain cluster

Click -> Cluster Management -> wzs-sat-poc-01

image-20250502134723523

  • 1.2 Select Registration, and unchecked Worker, Checked etcd and Control Plane, and select Insecure: Select this to skip TLS verification if your server has a self-signed certificate to skip TLS verification, then copied previous step registration command.

image-20250502131607457

  • 1.3 Paste registration command, and execution on new add master node
curl --insecure -fL https://rancher-wzsqas.wistron.com/system-agent-install.sh | sudo  sh -s - --server https://rancher-wzsqas.wistron.com --label 'cattle.io/os=linux' --token kb6cfqqv2mz5pchf7p4kxcbt9tsdm2jxgsjjtnzxrsgk5l4h5kbjpp --ca-checksum 738dc7ec672f776fd642ece280f4357f822ac47494974b6702651e8c357fc700 --etcd --controlplane

image-20250502131519942

2. Remove Master Node

  • 2.1 Login rancher, and select maintain cluster

Click -> Cluster Management -> wzs-sat-poc-01

image-20250502134723523

  • 2.2 Select need remove master node, then click Delete

image-20250502114949554

  • 2.3 Confirm delete

image-20250502115037524

  • 2.4 Waiting master removed from cluster, then use root login deleted marster node, and execution un-install script
/usr/local/bin/rke2-killall.sh
/usr/local/bin/rke2-uninstall.sh
rm -rf /etc/rancher
rm -rf /var/lib/rancher/*

image-20250502131401157