Add and Remove Worker Node¶
1. Add worker node¶
- 1.1 Login rancher, and select maintain cluster
Click
☰->Cluster Management->wzs-sat-poc-01
- 1.2 Select
Registration, and uncheckedetcdandControl Plane, CheckedWorker, and selectInsecure: Select this to skip TLS verification if your server has a self-signed certificateto skip TLS verification, then copied previous step registration command.
- 1.3 Paste registration command, and execution on new add worker 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 --worker
2. Remove worker node¶
- 2.1 Login master node
Drain all pod from worker node, and delete worker node
kubectl drain zstmesqw1 --ignore-daemonsets --delete-emptydir-data --force
kubectl get node
kubectl delete node zstmesqw1
kubectl get node
- 2.2 Login rancher, and select maintain cluster
Click
☰->Cluster Management->wzs-sat-poc-01
- 2.3 Select need remove worker node, then click
Delete
- 2.4 Confirm delete
- 2.5 Waiting worker removed from cluster, then use
rootlogin deleted worker node, and execution un-install script






