kubeasz/docs/op/AddNode.md

30 lines
636 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

## 增加 kube-node 节点
新增`kube-node`节点大致流程为:
- [可选]新节点安装 chrony 时间同步
- 新节点预处理 prepare
- 新节点安装 docker 服务
- 新节点安装 kube-node 服务
- 新节点安装网络插件相关
### 操作步骤
首先配置 ssh 免密码登陆新增节点,然后执行 (假设待增加节点为 192.168.1.11)
``` bash
$ easzctl add-node 192.168.1.11
```
### 验证
``` bash
# 验证新节点状态
$ kubectl get node
# 验证新节点的网络插件calico 或flannel 的Pod 状态
$ kubectl get pod -n kube-system
# 验证新建负载能否调度到新节点,略
```