-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# 多节点点部署 | ||
|
||
|
||
## 说明 | ||
|
||
适用场景:对数据安全要求高的应用,大型应用。 | ||
|
||
优点:高可用,容灾性强,支持在线扩容,多副本之间实时自动备份,负载均衡, 无需手动配置, 快速伸缩 | ||
|
||
缺点:需要多台机器。 | ||
|
||
|
||
#### 1. 添加Helm仓库 | ||
```bash | ||
helm repo add wukongim https://wukongim.github.io/helm/ | ||
``` | ||
|
||
#### 2. 更新Helm仓库 | ||
```bash | ||
helm repo update | ||
``` | ||
|
||
#### 3. 搜索可用的 Chart | ||
```bash | ||
helm search repo wukongim | ||
``` | ||
|
||
#### 4. 部署 | ||
```bash | ||
# 可选参数 | ||
# 1.副本数量 replicaCount=1 默认为2 | ||
# 2.外部IP externalIP= | ||
helm install wkim wukongim/wukongim -n wukomgim --create-namespace --version 0.1.0 --set replicaCount=3 | ||
``` | ||
|
||
#### 5. 查看安装状态 | ||
```bash | ||
helm status wkim | ||
``` | ||
|
||
|
||
#### 6. 卸载 | ||
```bash | ||
helm uninstall wkim | ||
``` |