mirror of https://github.com/easzlab/kubeasz.git
更新00-集群规划和基础参数设定.md
parent
3b57ed0a40
commit
cc8fe686d1
|
@ -98,6 +98,30 @@ pip install --no-cache-dir ansible -i http://mirrors.aliyun.com/pypi/simple/ --t
|
|||
ssh-keygen -t rsa -b 2048 回车 回车 回车
|
||||
ssh-copy-id $IPs #$IPs为所有节点地址,按照提示输入yes 和root密码
|
||||
```
|
||||
+ 验证ansible安装
|
||||
|
||||
``` bash
|
||||
ansible all -m ping
|
||||
```
|
||||
如果配置正确可以看到类似输出:
|
||||
|
||||
``` text
|
||||
192.168.1.42 | SUCCESS => {
|
||||
"changed": false,
|
||||
"failed": false,
|
||||
"ping": "pong"
|
||||
}
|
||||
192.168.1.43 | SUCCESS => {
|
||||
"changed": false,
|
||||
"failed": false,
|
||||
"ping": "pong"
|
||||
}
|
||||
192.168.1.44 | SUCCESS => {
|
||||
"changed": false,
|
||||
"failed": false,
|
||||
"ping": "pong"
|
||||
}
|
||||
```
|
||||
### 5.在deploy节点编排k8s安装
|
||||
``` bash
|
||||
git clone https://github.com/gjmzj/kubeasz.git
|
||||
|
|
Loading…
Reference in New Issue