Skip to content

Commit

Permalink
使用文档更新
Browse files Browse the repository at this point in the history
  • Loading branch information
gjmzj committed Mar 20, 2018
1 parent 65f0d5e commit e215f1e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion docs/00-集群规划和基础参数设定.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ ssh-copy-id $IPs #$IPs为所有节点地址包括自身,按照提示输入yes
``` bash
# 下载项目文件
git clone https://github.com/gjmzj/kubeasz.git
mv kubeasz /etc/ansible
mkdir -p /etc/ansible
mv kubeasz/* /etc/ansible
# 下载已打包好的binaries,解压到/etc/ansible/bin目录
# 国内请从百度云链接下载 https://pan.baidu.com/s/1c4RFaA
# 如果你有合适网络环境也可以按照/down/download.sh自行从官网下载各种tar包到 ./down目录,并执行download.sh
Expand Down
1 change: 1 addition & 0 deletions docs/07-安装calico网络组件.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ roles/calico/

### 安装calico 网络

+ 安装前检查主机名不能有大写字母,只能由`小写字母` `-` `.` 组成 (name must consist of lower case alphanumeric characters, '-' or '.' (regex: [a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*))
+ 安装之前必须确保`kube-master``kube-node`节点已经成功部署
+ 只需要在任意装有kubectl客户端的节点运行 `kubectl create `安装即可
+ 等待15s后(视网络拉取calico相关镜像速度),calico 网络插件安装完成,删除之前kube-node安装时默认cni网络配置
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/ingress.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ spec:
serviceName: test-hello
servicePort: 80
```
+ 集群内部尝试访问: `curl -H Host:hello.test.com 10.68.124.115` 能够看到欢迎页面 `Welcome to nginx!`;在集群外部尝试访问(假定集群一个NodeIP为 192.168.1.1): `curl -H Host:hello.test.com 192.168.1.1:23456`,也能够看到欢迎页面 `Welcome to nginx!`,说明ingress测试成功
+ 集群内部尝试访问: `curl -H Host:hello.test.com 10.68.69.170(traefik-ingress-service的服务地址)` 能够看到欢迎页面 `Welcome to nginx!`;在集群外部尝试访问(假定集群一个NodeIP为 192.168.1.1): `curl -H Host:hello.test.com 192.168.1.1:23456`,也能够看到欢迎页面 `Welcome to nginx!`,说明ingress测试成功

+ 最后我们可以为traefik WEB管理页面也创建一个ingress, `kubectl create -f /etc/ansible/manifests/ingress/traefik-ui.ing.yaml`

Expand Down
5 changes: 3 additions & 2 deletions docs/quickStart.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,16 @@ ssh-copy-id $IP #$IP为本虚机地址,按照提示输入yes 和root密码
### 4.安装kubernetes集群
``` bash
git clone https://github.com/gjmzj/kubeasz.git
mv kubeasz /etc/ansible
mkdir -p /etc/ansible
mv kubeasz/* /etc/ansible
# 下载已打包好的binaries,解压到/etc/ansible/bin目录
# 国内请从分享的百度云链接下载 https://pan.baidu.com/s/1c4RFaA
# 如果你有合适网络环境也可以按照/down/download.sh自行从官网下载各种tar包到 ./down目录,并执行download.sh
tar zxvf k8s.193.tar.gz
mv bin/* /etc/ansible/bin
# 配置ansible的hosts文件
cd /etc/ansible
cp example/hosts.allinone.example hosts # 然后根据实际情况修改此hosts文件,所有节点都是本虚机IP
cp example/hosts.allinone.example hosts # 然后根据实际情况修改此hosts文件,所有节点改成本虚机IP
# 开始集群安装,如果你对集群安装流程不熟悉,请阅读分步安装讲解后一步一步安装,并对每步都进行验证
# 分步安装
ansible-playbook 01.prepare.yml
Expand Down

0 comments on commit e215f1e

Please sign in to comment.