您好,登錄后才能下訂單哦!
rke 刪除節點:
修改cluster.yal 將需要刪除的節點配置刪除,然后運行
[root@cnvs-kubm-101-103 rke]# more cluster.yml
nodes:
- address: 172.20.101.103
user: ptmind
role: [controlplane,worker,etcd]
- address: 172.20.101.104
user: ptmind
role: [controlplane,worker,etcd]
- address: 172.20.101.105
user: ptmind
role: [controlplane,worker,etcd]
刪除# - address: 172.20.101.106
刪除# user: ptmind
刪除# role: [worker]
刪除# labels: {traefik: traefik-outer}
rke up --update-only
INFO[0010] [reconcile] Check etcd hosts to be deleted
INFO[0010] [reconcile] Check etcd hosts to be added
INFO[0010] [hosts] Cordoning host [172.20.101.106]
INFO[0010] [hosts] Deleting host [172.20.101.106] from the cluster
INFO[0010] [hosts] Successfully deleted host [172.20.101.106] from the cluster
INFO[0010] [dialer] Setup tunnel for host [172.20.101.106]
INFO[0011] [worker] Tearing down Worker Plane..
INFO[0011] [remove/kubelet] Successfully removed container on host [172.20.101.106]
INFO[0011] [remove/kube-proxy] Successfully removed container on host [172.20.101.106]
INFO[0011] [remove/nginx-proxy] Successfully removed container on host [172.20.101.106]
INFO[0011] [remove/service-sidekick] Successfully removed container on host [172.20.101.106]
INFO[0011] [worker] Successfully tore down Worker Plane..
INFO[0011] [hosts] Cleaning up host [172.20.101.106]
INFO[0011] [hosts] Running cleaner container on host [172.20.101.106]
INFO[0012] [kube-cleaner] Successfully started [kube-cleaner] container on host [172.20.101.106]
INFO[0012] Waiting for [kube-cleaner] container to exit on host [172.20.101.106]
INFO[0012] Container [kube-cleaner] is still running on host [172.20.101.106]
INFO[0013] Waiting for [kube-cleaner] container to exit on host [172.20.101.106]
INFO[0013] [hosts] Removing cleaner container on host [172.20.101.106]
INFO[0013] [hosts] Removing dead container logs on host [172.20.101.106]
INFO[0014] [cleanup] Successfully started [rke-log-cleaner] container on host [172.20.101.106]
INFO[0014] [remove/rke-log-cleaner] Successfully removed container on host [172.20.101.106]
INFO[0014] [hosts] Successfully cleaned up host [172.20.101.106
修改cluster.yal 將需要添加的節點配置,然后運行
[root@cnvs-kubm-101-103 rke]# more cluster.yml
nodes:
- address: 172.20.101.103
user: ptmind
role: [controlplane,worker,etcd]
- address: 172.20.101.104
user: ptmind
role: [controlplane,worker,etcd]
- address: 172.20.101.105
user: ptmind
role: [controlplane,worker,etcd]
- address: 172.20.101.106
user: ptmind
role: [worker]
labels: {traefik: traefik-outer}
rke up --update-only
INFO[0025] [worker] Building up Worker Plane..
INFO[0025] [worker] Successfully started [nginx-proxy] container on host [172.20.101.106]
INFO[0026] [worker] Successfully started [rke-log-linker] container on host [172.20.101.106]
INFO[0026] [remove/rke-log-linker] Successfully removed container on host [172.20.101.106]
INFO[0027] [worker] Successfully started [kubelet] container on host [172.20.101.106]
INFO[0027] [healthcheck] Start Healthcheck on service [kubelet] on host [172.20.101.106]
INFO[0032] [healthcheck] service [kubelet] on host [172.20.101.106] is healthy
INFO[0032] [worker] Successfully started [rke-log-linker] container on host [172.20.101.106]
INFO[0033] [remove/rke-log-linker] Successfully removed container on host [172.20.101.106]
INFO[0033] [worker] Successfully started [kube-proxy] container on host [172.20.101.106]
INFO[0033] [healthcheck] Start Healthcheck on service [kube-proxy] on host [172.20.101.106]
INFO[0038] [healthcheck] service [kube-proxy] on host [172.20.101.106] is healthy
INFO[0039] [worker] Successfully started [rke-log-linker] container on host [172.20.101.106]
INFO[0039] [remove/rke-log-linker] Successfully removed container on host [172.20.101.106]
INFO[0039] [worker] Successfully started Worker Plane..
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。