Skip to content

Commit 749baf5

Browse files
committed
增加一键部署aio集群脚本
1 parent 3a29c84 commit 749baf5

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

docs/setup/offline_install.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ sed -i 's/^INSTALL_SOURCE.*$/INSTALL_SOURCE: "offline"/g' /etc/ansible/roles/pre
6868
docker exec -it kubeasz easzctl start-aio
6969
```
7070

71-
- 多节点集群,进入kubeasz 容器内 `kubectl exec -it kubeasz bash`,参考https://github.com/easzlab/kubeasz/blob/master/docs/setup/00-planning_and_overall_intro.md 进行集群规划和设置后安装
71+
- 多节点集群,进入kubeasz 容器内 `docker exec -it kubeasz bash`,参考https://github.com/easzlab/kubeasz/blob/master/docs/setup/00-planning_and_overall_intro.md 进行集群规划和设置后安装
7272

7373
```
7474
#ansible-playbook 90.setup.yml

tools/start-aio

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/bash
2+
set -o nounset
3+
set -o errexit
4+
#set -o xtrace
5+
6+
function usage() {
7+
cat <<EOF
8+
Usage: start-aio <version> to start an all-in-one k8s cluster with a specific kubeasz version
9+
10+
EOF
11+
}
12+
13+
[[ "$#" -eq 1 ]] || { usage >&2; exit 1; }
14+
15+
# tool
16+
echo "[INFO] get the tool script: easzup"
17+
if [[ -e /usr/bin/curl ]];then
18+
curl -C- -fLO --retry 3 "https://github.com/easzlab/kubeasz/releases/download/$1/easzup" || exit 1
19+
else
20+
wget -c "https://github.com/easzlab/kubeasz/releases/download/$1/easzup" || exit 1
21+
fi
22+
23+
# download
24+
echo "[INFO] download everything with easzup"
25+
chmod +x ./easzup
26+
./easzup -D
27+
#./easzup -P
28+
29+
# install
30+
echo "[INFO] install k8s using a container 'kubeasz'"
31+
./easzup -S
32+
docker exec -it kubeasz easzctl start-aio

0 commit comments

Comments
 (0)