|
1 |
| - <br> |
2 | 1 |
|
3 |
| -[English](README.md) | 简体中文 |
| 2 | +<p align="center"> |
| 3 | +<a href="https://radondb.com/"><img src="https://github.com/radondb/radondb-mysql-kubernetes/blob/main/docs/images/logo_radondb-mysql.png?raw=true" alt="banner" width="200px"></a> |
| 4 | +</p> |
| 5 | +<p align="center"> |
| 6 | +<b><i>面向云原生、容器化的数据库开源社区</i></b> |
| 7 | +</p> |
4 | 8 |
|
5 |
| -# 什么是RadonDB MySQL |
| 9 | +<p align=center> |
| 10 | +<a href="https://goreportcard.com/report/github.com/radondb/radondb-mysql-kubernetes"><img src="https://goreportcard.com/badge/github.com/radondb/radondb-mysql-kubernetes" alt="A+"></a> |
| 11 | +<a href="https://img.shields.io/github/stars/radondb/radondb-mysql-kubernetes"><img src="https://img.shields.io/github/stars/radondb/radondb-mysql-kubernetes"></a> |
| 12 | +<a href="https://img.shields.io/github/issues/radondb/radondb-mysql-kubernetes"><img src="https://img.shields.io/github/issues/radondb/radondb-mysql-kubernetes"></a> |
| 13 | +<a href="https://img.shields.io/github/forks/radondb/radondb-mysql-kubernetes"><img src="https://img.shields.io/github/forks/radondb/radondb-mysql-kubernetes"></a> |
| 14 | +<a href="https://img.shields.io/github/v/release/radondb/radondb-mysql-kubernetes?include_prereleases"><img src="https://img.shields.io/github/v/release/radondb/radondb-mysql-kubernetes?include_prereleases"></a> |
| 15 | +<a href="https://img.shields.io/github/license/radondb/radondb-mysql-kubernetes"><img src="https://img.shields.io/github/license/radondb/radondb-mysql-kubernetes"></a> |
| 16 | +</p> |
6 | 17 |
|
7 |
| -[RadonDB MySQL](https://github.com/radondb/radondb-mysql-kubernetes) 是基于 MySQL 的开源、高可用、云原生集群解决方案。支持一主多从高可用架构,并具备安全、自动备份、监控告警、自动扩容等全套管理功能。 |
| 18 | +---- |
8 | 19 |
|
9 |
| -## RadonDB MySQL Kubernetes |
| 20 | +# 什么是 RadonDB MySQL |
10 | 21 |
|
11 |
| -RadonDB MySQL Kubernetes支持在[Kubernetes](https://kubernetes.io)和[KubeSphere](https://kubesphere.com.cn)上安装部署和管理,自动执行与运行RadonDB MySQL集群有关的任务。 |
| 22 | +**RadonDB MySQL** 是基于 MySQL 的开源、高可用、云原生集群解决方案。支持一主多从高可用架构,并具备安全、自动备份、监控告警、自动扩容等全套管理功能。 |
12 | 23 |
|
13 |
| -## 架构图 |
| 24 | +**RadonDB MySQL Kubernetes**支持在 [Kubernetes](https://kubernetes.io/) 、[KubeSphere](https://kubesphere.com.cn/) 和 [Rancher](https://rancher.com) 上安装部署和管理,自动执行与运行 RadonDB MySQL 集群有关的任务。 |
14 | 25 |
|
15 |
| -- 通过 Raft 协议实现无中心化领导者自动选举 |
16 |
| -- 通过 Semi-Sync基于GTID 模式同步数据 |
17 |
| -- 通过 [Xenon](https://github.com/radondb/xenon.git) 提供高可用能力 |
| 26 | +## 核心功能 |
| 27 | +🧠 **MySQL 高可用**:无中心化自动选主、主从秒级切换、集群切换的数据强一致性 |
| 28 | + |
18 | 29 |
|
19 |
| - |
| 30 | +✏️ **集群管理** |
20 | 31 |
|
21 |
| -## 核心功能 |
| 32 | +💻 [**监控告警**](docs/zh-cn/deploy_monitoring.md) |
22 | 33 |
|
23 |
| -- MySQL 高可用 |
24 |
| - - 无中心化自动选主 |
25 |
| - - 主从秒级切换 |
26 |
| - - 集群切换的数据强一致性 |
27 |
| -- 集群管理 |
28 |
| -- [监控告警](docs/zh-cn/deploy_monitoring.md) |
29 |
| -- [备份](docs/zh-cn/deploy_backup_restore_s3.md) |
30 |
| -- 集群日志管理 |
31 |
| -- [账户管理](docs/zh-cn/mgt_mysqluser.md) |
| 34 | +✍️ [**备份**](docs/zh-cn/deploy_backup_restore_s3.md) |
32 | 35 |
|
33 |
| -## 快速开始 |
| 36 | +🎈 **集群日志管理** |
34 | 37 |
|
35 |
| -### Operator |
| 38 | +👨 [**账户管理**](docs/zh-cn/mgt_mysqluser.md) |
36 | 39 |
|
37 |
| -- [在 Kubernetes 上部署 RadonDB MySQL 集群](docs/zh-cn/deploy_radondb-mysql_operator_on_k8s.md) |
38 |
| -- [在 KubeSphere 上部署 RadonDB MySQL 集群](docs/zh-cn/deploy_radondb-mysql_operator_on_kubesphere.md) |
39 |
| -- [在 Rancher 上部署 RadonDB MySQL 集群](/docs/zh-cn/deploy_radondb-mysql_operator_on_rancher.md) |
40 | 40 |
|
41 |
| -## 路线图 |
| 41 | +## 架构图 |
| 42 | + |
| 43 | +1、 通过 Raft 协议实现无中心化领导者自动选举 |
| 44 | + |
| 45 | +2、 通过 Semi-Sync基于GTID 模式同步数据 |
| 46 | + |
| 47 | +3、 通过 [Xenon](https://github.com/radondb/xenon.git) 提供高可用能力 |
| 48 | + |
| 49 | +<p align="center"> |
| 50 | +<a href="https://github.com/radondb/"><img src="https://github.com/radondb/radondb-mysql-kubernetes/blob/main/docs/images/radondb-mysql_Architecture.png?raw=true" alt="banner" width="800px"></a> |
| 51 | +</p> |
| 52 | + |
| 53 | +## 功能规划 |
42 | 54 |
|
43 | 55 | | 版本 | 功能 | 实现方式 |
|
44 | 56 | |------|--------|------|
|
45 | 57 | | 3.0 | 自动化运维 <br> 多节点角色 <br> 灾备集群 <br> SSL 传输加密 | Operator |
|
46 |
| -| 2.0 | 增删节点 <br> 自动扩缩容 <br> 升级集群 <br> 备份与恢复 <br> 故障自动转移 <br> 自动重建节点 <br> 自动重启服务 <br> 账户管理(提供 API 接口)<br> 在线迁移 | Operator | |
| 58 | +| 2.0 | 增删节点 <br> 升级集群 <br> 备份与恢复 <br> 故障自动转移 <br> 重建节点 <br> 账户管理 | Operator | |
47 | 59 | | 1.0 | 集群管理 <br> 监控告警 <br> 集群日志管理 <br> 账户管理 | Helm |
|
48 | 60 |
|
49 |
| -## 用户案例 |
| 61 | +# 快速开始 |
| 62 | + |
| 63 | +👀 本教程主要演示如何在 Kubernetes 上部署 RadonDB MySQL 集群(Operator)。 |
50 | 64 |
|
51 |
| - |
| 65 | +## 部署准备 |
| 66 | + |
| 67 | +📦 已准备可用 Kubernetes 集群。 |
| 68 | +## 部署步骤 |
| 69 | + |
| 70 | +### 步骤 1: 添加 Helm 仓库 |
| 71 | + |
| 72 | +```plain |
| 73 | +helm repo add radondb https://radondb.github.io/radondb-mysql-kubernetes/ |
| 74 | +``` |
| 75 | +### 步骤 2: 部署 Operator |
| 76 | + |
| 77 | +以下指定 release 名为 `demo` , 创建一个名为 `demo-mysql-operator` 的 [Deployment](https://kubernetes.io/zh/docs/concepts/workloads/controllers/deployment/)。 |
| 78 | + |
| 79 | +```plain |
| 80 | +helm install demo radondb/mysql-operator |
| 81 | +``` |
| 82 | +>**说明** |
| 83 | +>在这一步骤中默认将同时创建集群所需的 [CRD](https://kubernetes.io/zh/docs/concepts/extend-kubernetes/api-extension/custom-resources/)。 |
| 84 | +
|
| 85 | +### 步骤 3: 部署 RadonDB MySQL 集群 |
| 86 | + |
| 87 | +执行以下指令,以默认参数为 CRD `mysqlclusters.mysql.radondb.com` 创建一个实例,即创建 RadonDB MySQL 集群。您可参见[配置参数](https://./config_para.md)说明,自定义集群部署参数。 |
| 88 | + |
| 89 | +```plain |
| 90 | +kubectl apply -f https://github.com/radondb/radondb-mysql-kubernetes/releases/latest/download/mysql_v1alpha1_mysqlcluster.yaml |
| 91 | +``` |
| 92 | + |
| 93 | +## 操作视频 |
| 94 | + |
| 95 | +在 Kubernetes 上部署 RadonDB MySQL Operator 和 MySQL 集群,快速查看 👉 [Demo 视频](https://radondb.com/docs/mysql/v2.1.3/vadio/install/#content) |
| 96 | + |
| 97 | +📖 了解更多,请查看文档: |
| 98 | + |
| 99 | +* [在 Kubernetes 上部署 RadonDB MySQL 集群](https://github.com/radondb/radondb-mysql-kubernetes/blob/main/docs/zh-cn/deploy_radondb-mysql_operator_on_k8s.md) |
| 100 | +* [在 KubeSphere 上部署 RadonDB MySQL 集群](https://github.com/radondb/radondb-mysql-kubernetes/blob/main/docs/zh-cn/deploy_radondb-mysql_operator_on_kubesphere.md) |
| 101 | +* [在 Rancher 上部署 RadonDB MySQL 集群](https://github.com/radondb/radondb-mysql-kubernetes/blob/main/docs/zh-cn/deploy_radondb-mysql_operator_on_rancher.md) |
| 102 | + |
| 103 | +# 用户案例 |
| 104 | + |
| 105 | + |
52 | 106 |
|
53 | 107 | ## 协议
|
54 | 108 |
|
55 |
| -RadonDB MySQL 基于 Apache 2.0 协议,详见 [License](./LICENSE)。 |
| 109 | +RadonDB MySQL 基于 Apache 2.0 协议,详见 [License](https://github.com/radondb/radondb-mysql-kubernetes/blob/main/LICENSE)。 |
56 | 110 |
|
57 |
| -## 欢迎加入社区话题互动 |
| 111 | +## 欢迎加入社区话题互动 ❤️ |
58 | 112 |
|
59 |
| -- 论坛 |
| 113 | +😊 社区官网:[https://radondb.com](https://radondb.com) |
60 | 114 |
|
61 |
| - 请加入[KubeSphere 开发者社区](https://kubesphere.com.cn/forum/t/radondb) RadonDB MySQL 话题专区。 |
| 115 | +😁 社区论坛:请加入 KubeSphere 开发者论坛 [RadonDB](https://kubesphere.com.cn/forum/t/RadonDB) 板块。 |
62 | 116 |
|
63 |
| -- 欢迎关注微信公众号 |
| 117 | +😆 社区公众号:RadonDB 开源社区 |
64 | 118 |
|
65 |
| -  |
| 119 | +🦉 社区微信群:请添加群助手 radondb 邀请进群 |
| 120 | + |
| 121 | +如有任何关于 RadonDB MySQL 的 Bug、问题或建议,请在 GitHub 提交 [issue](https://github.com/radondb/radondb-mysql-kubernetes/issues) 或[论坛](https://kubesphere.com.cn/forum/t/RadonDB)反馈。 |
66 | 122 |
|
67 |
| ---- |
68 |
| -<p align="center"> |
69 |
| -<br/><br/> |
70 |
| -如有任何关于 RadonDB MySQL 的问题或建议,请在 GitHub 或论坛提交 Issue 反馈。 |
71 |
| -<br/> |
72 |
| -</a> |
73 |
| -</p> |
|
0 commit comments