Skip to content

Commit fc9cd22

Browse files
authored
Merge pull request #100 from hustjieke/feature_add_table_contents_#98
docs: add table content to files #98
2 parents b235312 + 34a0a84 commit fc9cd22

9 files changed

+185
-61
lines changed

docs/KubeSphere/deploy_radondb-mysql_on_kubesphere.md

100755100644
Lines changed: 36 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
1-
# **在 KubeSphere 上通过 Git 部署 RadonDB MySQL 集群**
2-
3-
## **简介**
1+
Contents
2+
=================
3+
4+
* [在 KubeSphere 上通过 Git 部署 RadonDB MySQL 集群](#在-kubesphere-上通过-git-部署-radondb-mysql-集群)
5+
* [简介](#简介)
6+
* [部署准备](#部署准备)
7+
* [安装 KubeSphere](#安装-kubesphere)
8+
* [创建 KubeSphere 多租户系统](#创建-kubesphere-多租户系统)
9+
* [连接 KubeSphere 客户端节点](#连接-kubesphere-客户端节点)
10+
* [部署步骤](#部署步骤)
11+
* [步骤 1:克隆 RadonDB MySQL Chart](#步骤-1克隆-radondb-mysql-chart)
12+
* [步骤 2:部署](#步骤-2部署)
13+
* [步骤 3:部署校验](#步骤-3部署校验)
14+
* [访问 RadonDB MySQL](#访问-radondb-mysql)
15+
* [开启服务网络访问](#开启服务网络访问)
16+
* [连接节点](#连接节点)
17+
* [配置](#配置)
18+
* [持久化](#持久化)
19+
* [自定义 MYSQL 配置](#自定义-mysql-配置)
20+
21+
# 在 KubeSphere 上通过 Git 部署 RadonDB MySQL 集群
22+
23+
## 简介
424

525
RadonDB MySQL 是基于 MySQL 的开源、高可用、云原生集群解决方案。通过使用 Raft 协议,RadonDB MySQL 可以快速进行故障转移,且不会丢失任何事务。
626

@@ -11,9 +31,9 @@ RadonDB MySQL 是基于 MySQL 的开源、高可用、云原生集群解决方
1131
- [在 KubeSphere 上通过 Helm Repo 部署 RadonDB MySQL 集群](deploy_radondb-mysql_on_kubesphere_repo.md)
1232
- [在 KubeSphere 上通过 应用商店 部署 RadonDB MySQL 集群](deploy_radondb-mysql_on_kubesphere_appstore.md)
1333

14-
## **部署准备**
34+
## 部署准备
1535

16-
### **安装 KubeSphere**
36+
### 安装 KubeSphere
1737

1838
可选择如下安装方式:
1939

@@ -23,11 +43,11 @@ RadonDB MySQL 是基于 MySQL 的开源、高可用、云原生集群解决方
2343

2444
- [在 Linux 上安装 Kubersphere](https://kubesphere.io/zh/docs/installing-on-linux/)
2545

26-
### **创建 KubeSphere 多租户系统**
46+
### 创建 KubeSphere 多租户系统
2747

2848
参考 KubeSphere 官方文档:[创建企业空间、项目、帐户和角色](https://kubesphere.io/zh/docs/quick-start/create-workspace-and-project/)
2949

30-
### **连接 KubeSphere 客户端节点**
50+
### 连接 KubeSphere 客户端节点
3151

3252
> 说明:如下示例适用于 KubeSphere 安装在 [青云QingCloud AppCenter](https://appcenter.qingcloud.com/apps/app-cmgbd5k2) 的场景。
3353
@@ -38,9 +58,9 @@ RadonDB MySQL 是基于 MySQL 的开源、高可用、云原生集群解决方
3858
> - 默认 root 用户密码为 KubeSphere 集群 ID。
3959
> - 通过第三方 SSH 工具连接客户端节点,需要在配置参数中填写 KubeSphere 的 `用户 SSH 公钥` 参数。
4060
41-
## **部署步骤**
61+
## 部署步骤
4262

43-
### **步骤 1:克隆 RadonDB MySQL Chart**
63+
### 步骤 1:克隆 RadonDB MySQL Chart
4464

4565
在 KubeSphere 客户端节点执行如下命令,将 RadonDB MySQL Chart 克隆到 KubeSphere 客户端节点中。
4666

@@ -50,7 +70,7 @@ RadonDB MySQL 是基于 MySQL 的开源、高可用、云原生集群解决方
5070

5171
> Chart 代表 [Helm](https://helm.sh/zh/docs/intro/using_helm/) 包,包含在 Kubernetes 集群内部运行应用程序、工具或服务所需的所有资源定义。
5272
53-
### **步骤 2:部署**
73+
### 步骤 2:部署
5474

5575
在 radondb-mysql-kubernetes 目录路径下,选择如下方式,部署 RadonDB MySQL 实例。
5676

@@ -93,19 +113,19 @@ RadonDB MySQL 是基于 MySQL 的开源、高可用、云原生集群解决方
93113
helm install demo -f values.yaml .
94114
```
95115

96-
#### **步骤 3:部署校验**
116+
### 步骤 3:部署校验
97117

98118
**项目管理**管理中心,选择 **应用负载 > 工作负载**,并选择**有状态副本集**页签,可查看到名为 `demo-radondb-mysql` 的副本集,则 RadonDB MySQL 集群已成功部署。
99119

100120
![控制台部署成功](png/控制台部署成功.png)
101121

102-
## **访问 RadonDB MySQL**
122+
## 访问 RadonDB MySQL
103123

104124
您需准备一个用于连接 RadonDB MySQL 的客户端。
105125

106126
> **注意:** 建议通过使用在同一 VPC 下主机或青云 VPN 服务来访问 RadonDB MySQL。不要通过端口转发的方式将服务暴露到公网,避免对数据库服务造成重大影响!
107127
108-
### **开启服务网络访问**
128+
### 开启服务网络访问
109129

110130
1.**项目管理** 界面中,选择 **应用负载** > **服务**,查看当前项目中的服务列表。
111131

@@ -140,7 +160,7 @@ RadonDB MySQL 是基于 MySQL 的开源、高可用、云原生集群解决方
140160

141161
![负载均衡端口](png/负载均衡端口.png)
142162

143-
### **连接节点**
163+
### 连接节点
144164

145165
使用如下命令连接节点。
146166

@@ -164,7 +184,7 @@ RadonDB MySQL 是基于 MySQL 的开源、高可用、云原生集群解决方
164184

165185
> 使用外网主机连接可能会出现 `SSL connection error`,需要加上 `--ssl-mode=DISABLE` 参数,关闭 SSL。
166186
167-
## **配置**
187+
## 配置
168188

169189
下表列出了 RadonDB MySQL Chart 的配置参数及对应的默认值。
170190

@@ -272,4 +292,4 @@ RadonDB MySQL 是基于 MySQL 的开源、高可用、云原生集群解决方
272292
273293
# custom mysql configuration.
274294
expire_logs_days=7
275-
```
295+
```

docs/KubeSphere/deploy_radondb-mysql_on_kubesphere_appstore.md

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
1-
# **在 KubeSphere 上通过应用商店部署 RadonDB MySQL 集群**
2-
3-
## **简介**
1+
Contents
2+
=================
3+
4+
* [在 KubeSphere 上通过应用商店部署 RadonDB MySQL 集群](#在-kubesphere-上通过应用商店部署-radondb-mysql-集群)
5+
* [简介](#简介)
6+
* [部署准备](#部署准备)
7+
* [安装 KubeSphere](#安装-kubesphere)
8+
* [创建 KubeSphere 多租户系统](#创建-kubesphere-多租户系统)
9+
* [部署步骤](#部署步骤)
10+
* [访问 RadonDB MySQL](#访问-radondb-mysql)
11+
* [开启服务网络访问](#开启服务网络访问)
12+
* [连接节点](#连接节点)
13+
* [配置](#配置)
14+
* [持久化](#持久化)
15+
* [自定义 MYSQL 配置](#自定义-mysql-配置)
16+
17+
# 在 KubeSphere 上通过应用商店部署 RadonDB MySQL 集群
18+
19+
## 简介
420

521
RadonDB MySQL 是基于 MySQL 的开源、高可用、云原生集群解决方案。通过使用 Raft 协议,RadonDB MySQL 可以快速进行故障转移,且不会丢失任何事务。
622

@@ -11,9 +27,9 @@ RadonDB MySQL 是基于 MySQL 的开源、高可用、云原生集群解决方
1127
- [在 KubeSphere 上通过 Helm Repo 部署 RadonDB MySQL 集群](deploy_radondb-mysql_on_kubesphere_repo.md)
1228
- [在 KubeSphere 上通过 Git 部署 RadonDB MySQL 集群](deploy_radondb-mysql_on_kubesphere.md)
1329

14-
## **部署准备**
30+
## 部署准备
1531

16-
### **安装 KubeSphere**
32+
### 安装 KubeSphere
1733

1834
可选择如下安装方式:
1935

@@ -25,11 +41,11 @@ RadonDB MySQL 是基于 MySQL 的开源、高可用、云原生集群解决方
2541

2642
> KubeSphere 版本需更新到 3.1。
2743
28-
### **创建 KubeSphere 多租户系统**
44+
### 创建 KubeSphere 多租户系统
2945

3046
参考 KubeSphere 官方文档:[创建企业空间、项目、帐户和角色](https://kubesphere.io/zh/docs/quick-start/create-workspace-and-project/)
3147

32-
### **部署步骤**
48+
### 部署步骤
3349

3450
1. 打开 KubeSphere 控制台,在 `demo-project` 项目的**概览**页面,点击左上角的**应用商店**
3551

@@ -53,13 +69,13 @@ RadonDB MySQL 是基于 MySQL 的开源、高可用、云原生集群解决方
5369

5470
![RadonDB MySQL 运行中](png/RadonDB%20MySQL运行中.png)
5571

56-
## **访问 RadonDB MySQL**
72+
## 访问 RadonDB MySQL
5773

5874
您需准备一个用于连接 RadonDB MySQL 的客户端。
5975

6076
> **注意:** 建议通过使用在同一 VPC 下主机或青云 VPN 服务来访问 RadonDB MySQL。不要通过端口转发的方式将服务暴露到公网,避免对数据库服务造成重大影响!
6177
62-
### **开启服务网络访问**
78+
### 开启服务网络访问
6379

6480
1.**项目管理** 界面中,选择 **应用负载** > **服务**,查看当前项目中的服务列表。
6581

@@ -94,7 +110,7 @@ RadonDB MySQL 是基于 MySQL 的开源、高可用、云原生集群解决方
94110

95111
![负载均衡端口](png/负载均衡端口.png)
96112

97-
### **连接节点**
113+
### 连接节点
98114

99115
使用如下命令连接节点。
100116

@@ -118,7 +134,7 @@ RadonDB MySQL 是基于 MySQL 的开源、高可用、云原生集群解决方
118134

119135
> 使用外网主机连接可能会出现 `SSL connection error`,需要加上 `--ssl-mode=DISABLE` 参数,关闭 SSL。
120136
121-
## **配置**
137+
## 配置
122138

123139
下表列出了 RadonDB MySQL Chart 的配置参数及对应的默认值。
124140

@@ -226,4 +242,4 @@ RadonDB MySQL 是基于 MySQL 的开源、高可用、云原生集群解决方
226242
227243
# custom mysql configuration.
228244
expire_logs_days=7
229-
```
245+
```

docs/KubeSphere/deploy_radondb-mysql_on_kubesphere_repo.md

Lines changed: 36 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
1-
# **在 KubeSphere 上通过 Helm Repo 部署 RadonDB MySQL 集群**
2-
3-
## **简介**
1+
Contents
2+
=================
3+
4+
* [在 KubeSphere 上通过 Helm Repo 部署 RadonDB MySQL 集群](#在-kubesphere-上通过-helm-repo-部署-radondb-mysql-集群)
5+
* [简介](#简介)
6+
* [部署准备](#部署准备)
7+
* [安装 KubeSphere](#安装-kubesphere)
8+
* [创建 KubeSphere 多租户系统](#创建-kubesphere-多租户系统)
9+
* [连接 KubeSphere 客户端节点](#连接-kubesphere-客户端节点)
10+
* [部署步骤](#部署步骤)
11+
* [步骤 1 : 添加仓库](#步骤-1--添加仓库)
12+
* [步骤 2 : 部署](#步骤-2--部署)
13+
* [部署校验](#部署校验)
14+
* [访问 RadonDB MySQL](#访问-radondb-mysql)
15+
* [开启服务网络访问](#开启服务网络访问)
16+
* [连接节点](#连接节点)
17+
* [配置](#配置)
18+
* [持久化](#持久化)
19+
* [自定义 MYSQL 配置](#自定义-mysql-配置)
20+
21+
# 在 KubeSphere 上通过 Helm Repo 部署 RadonDB MySQL 集群
22+
23+
## 简介
424

525
RadonDB MySQL 是基于 MySQL 的开源、高可用、云原生集群解决方案。通过使用 Raft 协议,RadonDB MySQL 可以快速进行故障转移,且不会丢失任何事务。
626

@@ -11,9 +31,9 @@ RadonDB MySQL 是基于 MySQL 的开源、高可用、云原生集群解决方
1131
- [在 KubeSphere 上通过应用商店部署 RadonDB MySQL 集群](deploy_radondb-mysql_on_kubesphere_appstore.md)
1232
- [在 KubeSphere 上通过 Git 部署 RadonDB MySQL 集群](deploy_radondb-mysql_on_kubesphere.md)
1333

14-
## **部署准备**
34+
## 部署准备
1535

16-
### **安装 KubeSphere**
36+
### 安装 KubeSphere
1737

1838
可选择如下安装方式:
1939

@@ -23,11 +43,11 @@ RadonDB MySQL 是基于 MySQL 的开源、高可用、云原生集群解决方
2343

2444
- [在 Linux 上安装 Kubersphere](https://kubesphere.io/zh/docs/installing-on-linux/)
2545

26-
### **创建 KubeSphere 多租户系统**
46+
### 创建 KubeSphere 多租户系统
2747

2848
参考 KubeSphere 官方文档:[创建企业空间、项目、帐户和角色](https://kubesphere.io/zh/docs/quick-start/create-workspace-and-project/)
2949

30-
### **连接 KubeSphere 客户端节点**
50+
### 连接 KubeSphere 客户端节点
3151

3252
> 说明:如下示例适用于 KubeSphere 安装在 [青云QingCloud AppCenter](https://appcenter.qingcloud.com/apps/app-cmgbd5k2) 的场景。
3353
@@ -38,9 +58,9 @@ RadonDB MySQL 是基于 MySQL 的开源、高可用、云原生集群解决方
3858
> - 默认 root 用户密码为 KubeSphere 集群 ID。
3959
> - 通过第三方 SSH 工具连接客户端节点,需要在配置参数中填写 KubeSphere 的 `用户 SSH 公钥` 参数。
4060
41-
### **部署步骤**
61+
### 部署步骤
4262

43-
#### **步骤 1 : 添加仓库**
63+
#### 步骤 1 : 添加仓库
4464

4565
添加并更新 helm 仓库。
4666

@@ -49,7 +69,7 @@ $ helm repo add test https://charts.kubesphere.io/test
4969
$ helm repo update
5070
```
5171

52-
#### **步骤 2 : 部署**
72+
#### 步骤 2 : 部署
5373

5474
以下命令指定 release 名为 `demo`,将创建一个名为 `demo-radondb-mysql` 的有状态副本集。
5575

@@ -89,7 +109,7 @@ To connect to your database:
89109
mysql -h demo-radondb-mysql-follower -u qingcloud -p
90110
```
91111

92-
### **部署校验**
112+
### 部署校验
93113

94114
分别执行如下指令,查看到 `release` 名为 `demo` 的有状态副本集 `demo-radondb-mysql`,则 RadonDB MySQL 部署成功。
95115

@@ -103,13 +123,13 @@ NAME READY AGE
103123
demo-radondb-mysql 3/3 25h
104124
```
105125

106-
## **访问 RadonDB MySQL**
126+
## 访问 RadonDB MySQL
107127

108128
您需准备一个用于连接 RadonDB MySQL 的客户端。
109129

110130
> **注意:** 建议通过使用在同一 VPC 下主机或青云 VPN 服务来访问 RadonDB MySQL。不要通过端口转发的方式将服务暴露到公网,避免对数据库服务造成重大影响!
111131
112-
### **开启服务网络访问**
132+
### 开启服务网络访问
113133

114134
1.**项目管理** 界面中,选择 **应用负载** > **服务**,查看当前项目中的服务列表。
115135

@@ -144,7 +164,7 @@ demo-radondb-mysql 3/3 25h
144164

145165
![负载均衡端口](png/负载均衡端口.png)
146166

147-
### **连接节点**
167+
### 连接节点
148168

149169
使用如下命令连接节点。
150170

@@ -168,7 +188,7 @@ demo-radondb-mysql 3/3 25h
168188

169189
> 使用外网主机连接可能会出现 `SSL connection error`,需要加上 `--ssl-mode=DISABLE` 参数,关闭 SSL。
170190
171-
## **配置**
191+
## 配置
172192

173193
下表列出了 RadonDB MySQL Chart 的配置参数及对应的默认值。
174194

@@ -276,4 +296,4 @@ demo-radondb-mysql 3/3 25h
276296
277297
# custom mysql configuration.
278298
expire_logs_days=7
279-
```
299+
```

0 commit comments

Comments
 (0)