forked from trestea/kubernetes-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and rename README.md to README_zh_cn.md
- Loading branch information
Showing
2 changed files
with
21 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# kubernetes ansible | ||
|
||
# 使用方法: | ||
|
||
1、配置ansible,确保运行ansible -i hosts all -m ping 都是成功,非root用户需要有sudo权限。 | ||
|
||
2、配置好group_vars/all.yaml 根据自己的情况修改。 | ||
|
||
注意:如果已经有ETCD服务器,在group_vars/all.yaml中ETCD_INSTALL配置为no, 在ETCD_SERVER_IP 配置已有的ETCD服务IP | ||
|
||
3、配置好目录下的 hosts 文件 | ||
|
||
4、在目录下运行ansible-playbook -i hosts site.yaml | ||
|
||
5、检查集群状态 | ||
|
||
1、kubectl get componentstatuses | ||
|
||
2、kubectl get nodes | ||
|
||
enjoy!!! |