差異處
這裏顯示兩個版本的差異處。
| 兩邊的前次修訂版 前次修改 下次修改 | 前次修改 | ||
| tech:rke-k8s [2021/04/07 19:28] – jonathan | tech:rke-k8s [2022/07/19 16:55] (目前版本) – [關閉 rke (移除 K8s Cluster)] jonathan | ||
|---|---|---|---|
| 行 169: | 行 169: | ||
| </ | </ | ||
| + | ===== 新增與移除 K8s Node ==== | ||
| + | * 只要修改 cluster.yml 節點資料, | ||
| + | * Exp. 加上 10.20.0.36 | ||
| + | * 前面所有節點準備程序都要進行 | ||
| + | * 修改 cluster.yml < | ||
| + | nodes: | ||
| + | - address: 10.20.0.35 | ||
| + | port: " | ||
| + | internal_address: | ||
| + | role: | ||
| + | - controlplane | ||
| + | - worker | ||
| + | - etcd | ||
| + | hostname_override: | ||
| + | user: rkeuser | ||
| + | docker_socket: | ||
| + | ssh_key: "" | ||
| + | ssh_key_path: | ||
| + | ssh_cert: "" | ||
| + | ssh_cert_path: | ||
| + | labels: {} | ||
| + | taints: [] | ||
| + | - address: 10.20.0.36 | ||
| + | port: " | ||
| + | internal_address: | ||
| + | role: | ||
| + | - worker | ||
| + | hostname_override: | ||
| + | user: rkeuser | ||
| + | docker_socket: | ||
| + | ssh_key: "" | ||
| + | ssh_key_path: | ||
| + | ssh_cert: "" | ||
| + | ssh_cert_path: | ||
| + | labels: {} | ||
| + | taints: [] | ||
| + | - address: 10.20.0.37 | ||
| + | port: " | ||
| + | internal_address: | ||
| + | role: | ||
| + | - worker | ||
| + | hostname_override: | ||
| + | user: rkeuser | ||
| + | docker_socket: | ||
| + | ssh_key: "" | ||
| + | ssh_key_path: | ||
| + | ssh_cert: "" | ||
| + | ssh_cert_path: | ||
| + | labels: {} | ||
| + | taints: [] | ||
| + | services: | ||
| + | etcd: | ||
| + | : | ||
| + | : | ||
| + | </ | ||
| + | * 執行更新 <cli> | ||
| + | rke up --update-only --config cluster.yml | ||
| + | </ | ||
| + | |||
| + | ===== 關閉 rke (移除 K8s Cluster) ==== | ||
| + | * 直接執行 rke remove 就會將 K8s 移除 <cli> | ||
| + | rke remove --config cluster.yml | ||
| + | </ | ||
| + | * 執行後原本運行中的 rancher 服務還會持續運行, | ||
| ===== 參考網址 ===== | ===== 參考網址 ===== | ||
| * https:// | * https:// | ||
| + | * https:// | ||
| - | {{tag> | + | {{tag>Rancher |