-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use k3s for deployment defaultly
- Loading branch information
Showing
30 changed files
with
335 additions
and
138 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
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
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
执行下面的步骤进行重装: | ||
|
||
1. 执行 `kubeadm reset -f` 删除 kubernetes 集群 | ||
1. 参考[卸载文档](../../operations/uninstallation#ocboot)清理环境。 | ||
|
||
2. 重新运行 ocboot 的 run.py 脚本 | ||
2. 重新运行 ocboot 的 run.py 脚本。 |
19 changes: 19 additions & 0 deletions
19
docs/getting-started/_parts/_quickstart-ocboot-buildah-git.mdx
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,19 @@ | ||
import OcbootClone from '@site/src/components/OcbootK3sClone'; | ||
|
||
### 安装 git | ||
|
||
首先需要确保 git 已经安装,如果没有安装请使用对应的包管理工具安装,可参考文档:[Download git for Linux](https://git-scm.com/download/linux)。 | ||
|
||
### 下载部署工具 | ||
|
||
部署的工具在 [https://github.com/yunionio/ocboot](https://github.com/yunionio/ocboot),需要把该工具使用 `git clone` 下来: | ||
|
||
<OcbootClone /> | ||
|
||
<!-- ### 安装 buildah --> | ||
<!----> | ||
<!-- 接下来安装 buildah 这个容器工具,使用容器的方式运行部署工具,安装 buildah 的操作如下: --> | ||
<!----> | ||
<!-- ```bash --> | ||
<!-- $ ./scripts/install-buildah.sh --> | ||
<!-- ``` --> |
36 changes: 36 additions & 0 deletions
36
docs/getting-started/_parts/_quickstart-ocboot-install-cloudpods-k3s.mdx
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,36 @@ | ||
import OcbootReleaseDownload from '../_parts/_quickstart-ocboot-release-download.mdx'; | ||
|
||
<OcbootReleaseDownload /> | ||
|
||
### 运行部署工具 | ||
|
||
接下来执行 `ocboot.sh run.py` 部署服务。其中 **host_ip** 为部署节点的 IP 地址,该参数为可选项。如果不指定则选择默认路由出去的那张网卡部署服务。如果你的节点有多张网卡,可以通过指定 **host_ip** 选择对应网卡监听服务。 | ||
|
||
import OcbootRun from '@site/src/components/OcbootK3sRun'; | ||
|
||
<OcbootRun productVersion={props.productVersion} /> | ||
|
||
`./ocboot.sh run.py` 脚本会调用 ansible 部署服务,如果部署过程中遇到问题导致脚本退出,可以重复执行该脚本进行重试。 | ||
|
||
## 部署完成 | ||
|
||
```bash | ||
.... | ||
# 部署完成后会有如下输出,表示运行成功 | ||
# 浏览器打开 https://10.168.26.216 ,该 ip 为之前设置 <host_ip> | ||
# 使用 admin/admin@123 用户密码登录就能访问前端界面 | ||
Initialized successfully! | ||
Web page: https://10.168.26.216 | ||
User: admin | ||
Password: admin@123 | ||
``` | ||
|
||
然后用浏览器访问 https://10.168.26.216 ,用户名输入 `admin`,密码输入 `admin@123` 就会进入 Cloudpods 的界面。 | ||
|
||
 | ||
|
||
#### 使用域名访问环境时,需要修改 api_server 接入端(可选) | ||
|
||
`api_server` 配置是整个平台的接入端地址,会影响前端虚拟机 VNC 或者 Web SSH、CloudShell 的连接。一般无法通过 Web SSH 进入虚拟机或者打开 CloudShell,是因为没有正确设置 api_server 配置造成的。 | ||
|
||
需要参考文档:[修改服务 api_server 入口配置](../../operations/fe/config-ssl-certs#change-api-server-via-climc),根据自己环境的网络情况手动修改。 |
24 changes: 24 additions & 0 deletions
24
docs/getting-started/_parts/_quickstart-ocboot-k3s-env.mdx
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,24 @@ | ||
:::tip 注意事项: | ||
|
||
- 操作系统需要是干净的版本,因为部署工具会重头搭建指定版本的 k3s 集群,所以确保系统没有安装 kubernetes, containerd 等容器管理工具,否则会出现冲突导致安装异常。 | ||
- 最低配置要求: CPU 8核, 内存 8GiB, 存储 200GiB。 | ||
- 虚拟机和服务使用的存储路径都在 **/opt** 目录下,所以理想环境下建议单独给 **/opt** 目录设置挂载点。 | ||
- 比如把 /dev/sdb1 单独分区做 ext4 然后通过 /etc/fstab 挂载到 /opt 目录。 | ||
::: | ||
|
||
|
||
根据 CPU 架构不同,支持的发行版也不一样,目前支持的发行版情况如下: | ||
|
||
注:3.11、3.10等,表示发行版 Release/3.11、Release/3.10。其余同理。 | ||
|
||
| Operationg system and Arch | 3.11 | 3.10 | | ||
| -------------------------------------- | ---- | ---- | | ||
| CentOS 7 2009 x86_64+aarch64 | ✅ | ✅ | | ||
| OpenEuler 22.03 LTS Sp3 x86_64+aarch64 | ✅ | ✅ | | ||
| Debian 11 x86_64+aarch64 | ✅ | ✅ | | ||
| Ubuntu 22.04 x86_64+aarch64 | ✅ | ✅ | | ||
| CentOS Stream8 x86_64 | ✅ | ✅ | | ||
| Rocky Linux 8.9 x86_64 | ✅ | ✅ | | ||
| OpencloudOS 8.8 x86_64 | ✅ | ✅ | | ||
| AlmaLinux 8.9 x86_64 | ✅ | ✅ | | ||
| AnolisOS 8.8 x86_64 | ✅ | ✅ | |
7 changes: 7 additions & 0 deletions
7
docs/getting-started/_parts/_quickstart-ocboot-release-download.mdx
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,7 @@ | ||
### 下载部署工具 | ||
|
||
部署的工具代码在 [https://github.com/yunionio/ocboot/release](https://github.com/yunionio/ocboot/releases),选择对应的版本,把代码的 tar.gz 包下载下来。 | ||
|
||
import DownloadOcboot from '@site/src/components/DownloadOcboot'; | ||
|
||
<DownloadOcboot /> |
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
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
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
--- | ||
edition: ce | ||
sidebar_position: 6 | ||
draft: true | ||
--- | ||
# Ocboot k3s 快速安装 | ||
|
||
|
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
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 |
---|---|---|
|
@@ -25,7 +25,7 @@ edition: ce | |
- 网络: | ||
- 当前可用的网段: 虚拟机可以直接使用和计算节点所在的扁平网段,需要预先划分保留对应端给云平台虚拟机使用,防止被其它设备占用,最后 IP 冲突 | ||
|
||
import OcbootEnv from '../_parts/_quickstart-ocboot-env.mdx'; | ||
import OcbootEnv from '../_parts/_quickstart-ocboot-k3s-env.mdx'; | ||
|
||
<OcbootEnv /> | ||
|
||
|
@@ -35,7 +35,7 @@ import OcbootEnv from '../_parts/_quickstart-ocboot-env.mdx'; | |
|
||
## 使用 ocboot 添加对应节点 | ||
|
||
以下操作在控制节点进行,在控制节点使用 `ocboot.py add-node` 命令把对应计算节点添加进来。 | ||
以下操作在控制节点进行,在控制节点使用 `ocboot.sh add-node` 命令把对应计算节点添加进来。 | ||
|
||
假设要给控制节点 10.168.26.216 添加计算节点 10.168.222.140 首先需要 ssh root 免密码登录对应的计算节点以及控制节点自身。 | ||
|
||
|
@@ -66,10 +66,10 @@ $ ssh [email protected] "hostname" | |
$ cd /root/ocboot | ||
|
||
# 使用 ocboot 添加节点 | ||
$ ./ocboot.py add-node 10.168.26.216 10.168.222.140 | ||
$ ./ocboot.sh add-node 10.168.26.216 10.168.222.140 | ||
|
||
# 其他选项,使用 '--help' 参考帮助 | ||
$ ./ocboot.py add-node --help | ||
$ ./ocboot.sh add-node --help | ||
usage: ocboot.py add-node [-h] [--user SSH_USER] [--key-file SSH_PRIVATE_FILE] [--port SSH_PORT] [--node-port SSH_NODE_PORT] | ||
FIRST_MASTER_HOST TARGET_NODE_HOSTS [TARGET_NODE_HOSTS ...] | ||
|
||
|
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
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
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
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
Oops, something went wrong.