mirror of https://github.com/easzlab/kubeasz.git
parent
6812b99a6c
commit
809ae82478
|
@ -3,7 +3,7 @@
|
||||||
项目致力于提供快速部署高可用`k8s`集群的工具, 同时也努力成为`k8s`实践、使用的参考书;基于二进制方式部署和利用`ansible-playbook`实现自动化;既提供一键安装脚本, 也可以根据`安装指南`分步执行安装各个组件。
|
项目致力于提供快速部署高可用`k8s`集群的工具, 同时也努力成为`k8s`实践、使用的参考书;基于二进制方式部署和利用`ansible-playbook`实现自动化;既提供一键安装脚本, 也可以根据`安装指南`分步执行安装各个组件。
|
||||||
|
|
||||||
- **集群特性** `TLS`双向认证、`RBAC`授权、[多Master高可用](docs/setup/00-planning_and_overall_intro.md#ha-architecture)、支持`Network Policy`、备份恢复、[离线安装](docs/setup/offline_install.md)
|
- **集群特性** `TLS`双向认证、`RBAC`授权、[多Master高可用](docs/setup/00-planning_and_overall_intro.md#ha-architecture)、支持`Network Policy`、备份恢复、[离线安装](docs/setup/offline_install.md)
|
||||||
- **集群版本** kubernetes v1.12, v1.13, v1.14, v1.15
|
- **集群版本** kubernetes v1.13, v1.14, v1.15, v1.16
|
||||||
- **操作系统** CentOS/RedHat 7, Debian 9/10, Ubuntu 1604/1804
|
- **操作系统** CentOS/RedHat 7, Debian 9/10, Ubuntu 1604/1804
|
||||||
- **运行时** docker 18.06.x-ce, 18.09.x, [containerd](docs/guide/containerd.md) 1.2.6
|
- **运行时** docker 18.06.x-ce, 18.09.x, [containerd](docs/guide/containerd.md) 1.2.6
|
||||||
- **网络** [calico](docs/setup/network-plugin/calico.md), [cilium](docs/setup/network-plugin/cilium.md), [flannel](docs/setup/network-plugin/flannel.md), [kube-ovn](docs/setup/network-plugin/kube-ovn.md), [kube-router](docs/setup/network-plugin/kube-router.md)
|
- **网络** [calico](docs/setup/network-plugin/calico.md), [cilium](docs/setup/network-plugin/cilium.md), [flannel](docs/setup/network-plugin/flannel.md), [kube-ovn](docs/setup/network-plugin/kube-ovn.md), [kube-router](docs/setup/network-plugin/kube-router.md)
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
## 快速指南
|
## 快速指南
|
||||||
|
|
||||||
单机快速体验k8s集群的测试、开发环境--[AllinOne部署](docs/setup/quickStart.md)
|
单机快速体验k8s集群的测试环境--[AllinOne部署](docs/setup/quickStart.md)
|
||||||
|
|
||||||
## 安装指南
|
## 安装指南
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
## kubeasz-2.1.0 发布说明
|
||||||
|
|
||||||
|
【Warnning】PROXY_MODE变量定义转移到ansible hosts #688,对于已有的ansible hosts文件需要手动增加该定义,参考example/hosts.*
|
||||||
|
|
||||||
|
CHANGELOG:
|
||||||
|
- 组件更新
|
||||||
|
- k8s: v1.16.2 v1.15.5 v1.14.8 v1.13.12
|
||||||
|
- docker: 18.09.9
|
||||||
|
- coredns v1.6.2
|
||||||
|
- metrics-server v0.3.6
|
||||||
|
- kube-ovn: 0.8.0 #708
|
||||||
|
- dashboard v2.0.0-beta5
|
||||||
|
- 集群安装
|
||||||
|
- 更新/清理 APIs version,支持 k8s v1.16
|
||||||
|
- 增加临时启停集群脚本 91.start.yml 92.stop.yml
|
||||||
|
- 更新只读权限 read rbac role
|
||||||
|
- 工具脚本
|
||||||
|
- 更新 tools/easzup
|
||||||
|
- 文档
|
||||||
|
- 增加go web应用部署实践 docs/practice/go_web_app
|
||||||
|
- 增加go项目dockerfile示例 docs/practice/go_web_app/Dockerfile-more
|
||||||
|
- 更新 log-pilot 日志方案 docs/guide/log-pilot.md
|
||||||
|
- 更新主页【推荐工具栏】kuboard k9s octant
|
||||||
|
- 其他
|
||||||
|
- fix: 增加kube-proxy参数--cluster-cidr #663
|
||||||
|
- fix: 删除etcd服务不影响node服务 #690
|
||||||
|
- fix: deploy阶段pip安装netaddr包
|
||||||
|
- fix: 仅非容器化运行ansible需要安装 #658
|
||||||
|
- fix: ipvs-connection-timeout-issue
|
||||||
|
- fix: heapster无法读取节点度量数据
|
||||||
|
- fix: tcp_tw_recycle settings issue #714
|
||||||
|
- fix: 文档文字“登陆”->“登录” #720
|
|
@ -7,8 +7,8 @@ kubeasz 2.0.1 开始支持**完全离线安装**,目前已测试 `Ubuntu1604|1
|
||||||
在一台能够访问互联网的服务器上执行:
|
在一台能够访问互联网的服务器上执行:
|
||||||
|
|
||||||
```
|
```
|
||||||
# 下载工具脚本easzup,举例使用kubeasz版本2.0.2
|
# 下载工具脚本easzup,举例使用kubeasz版本2.0.3
|
||||||
export release=2.0.2
|
export release=2.0.3
|
||||||
curl -C- -fLO --retry 3 https://github.com/easzlab/kubeasz/releases/download/${release}/easzup
|
curl -C- -fLO --retry 3 https://github.com/easzlab/kubeasz/releases/download/${release}/easzup
|
||||||
chmod +x ./easzup
|
chmod +x ./easzup
|
||||||
# 使用工具脚本下载
|
# 使用工具脚本下载
|
||||||
|
@ -30,25 +30,24 @@ chmod +x ./easzup
|
||||||
|
|
||||||
## 离线安装
|
## 离线安装
|
||||||
|
|
||||||
上述下载完成后,把`/etc/ansible`整个目录复制到目标离线服务器,然后在离线服务器上运行:
|
上述下载完成后,把`/etc/ansible`整个目录复制到目标离线服务器相同目录,然后在离线服务器上运行:
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
# 离线安装 docker,检查本地文件等
|
# 离线安装 docker,检查本地文件,正常会提示所有文件已经下载完成
|
||||||
$ ./easzup -D
|
./easzup -D
|
||||||
|
|
||||||
# 启动 kubeasz 容器
|
# 启动 kubeasz 容器
|
||||||
$ ./easzup -S
|
./easzup -S
|
||||||
|
|
||||||
# 进入容器
|
# 设置参数,启用离线安装
|
||||||
$ docker exec -it kubeasz sh
|
sed -i 's/^INSTALL_SOURCE.*$/INSTALL_SOURCE: "offline"/g' /etc/ansible/roles/chrony/defaults/main.yml
|
||||||
|
sed -i 's/^INSTALL_SOURCE.*$/INSTALL_SOURCE: "offline"/g' /etc/ansible/roles/ex-lb/defaults/main.yml
|
||||||
|
sed -i 's/^INSTALL_SOURCE.*$/INSTALL_SOURCE: "offline"/g' /etc/ansible/roles/kube-node/defaults/main.yml
|
||||||
|
sed -i 's/^INSTALL_SOURCE.*$/INSTALL_SOURCE: "offline"/g' /etc/ansible/roles/prepare/defaults/main.yml
|
||||||
|
|
||||||
# 设置参数启用离线安装
|
# 进入容器执行安装,参考 https://github.com/easzlab/kubeasz/blob/master/docs/setup/quickStart.md
|
||||||
$ cd /etc/ansible
|
docker exec -it kubeasz easzctl start-aio
|
||||||
$ sed -i 's/^INSTALL_SOURCE.*$/INSTALL_SOURCE: "offline"/g' roles/chrony/defaults/main.yml
|
|
||||||
$ sed -i 's/^INSTALL_SOURCE.*$/INSTALL_SOURCE: "offline"/g' roles/ex-lb/defaults/main.yml
|
|
||||||
$ sed -i 's/^INSTALL_SOURCE.*$/INSTALL_SOURCE: "offline"/g' roles/kube-node/defaults/main.yml
|
|
||||||
$ sed -i 's/^INSTALL_SOURCE.*$/INSTALL_SOURCE: "offline"/g' roles/prepare/defaults/main.yml
|
|
||||||
|
|
||||||
# 按照文档 https://github.com/easzlab/kubeasz/blob/master/docs/setup/00-planning_and_overall_intro.md 集群规划后安装
|
# 或者按照文档 https://github.com/easzlab/kubeasz/blob/master/docs/setup/00-planning_and_overall_intro.md 集群规划后安装
|
||||||
$ ansible-playbook 90.setup.yml
|
#ansible-playbook 90.setup.yml
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue