Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

add 0717-Curve控制台部署使用.md #102

Merged
merged 1 commit into from
Jul 24, 2023
Merged

Conversation

SeanHai
Copy link
Contributor

@SeanHai SeanHai commented Jul 17, 2023

No description provided.

enable.multiple.write.user.login: false # 允许多个具有写权限的用户同时登陆
system.log.expiration.days: 30 # 审计日志过期时间,过期内容自动删除
system.alert.expiration.days: 30 # 系统告警信息过期时间,过期内容自动删除
curveadm.service.address: 127.0.0.1:11000 # <必改项>curveadm http service地址
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个应该改成啥?

Copy link
Contributor Author

@SeanHai SeanHai Jul 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

就是部署过程中有一步“启动curveadm http service" 那个里面的地址,默认是127.0.0.1:11000,如果那边修改了,这边对应也要改下。 我描述清楚下

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以写的更清晰点。依赖某一个步骤的结果。

@@ -0,0 +1,150 @@
## 背景
Curve 控制台是 Curve 为了提升系统易用性而开发的一个相对独立的 Web 服务,提供基于 Web 的集群管理能力,使得存储集群的部署和管理门槛进相对 CLI 方式一步降低,提供一种更加清晰直观的视图。上篇文章[《Curve 易用性升级之可视化运维——web 控制台介绍》](https://mp.weixin.qq.com/s/5Vkshg-CGl_wVNW695Qixw)中我们已经介绍了系统架构和核心特性,控制台项目已经开源,为了帮助大家快速体验该功能,这篇文章将介绍控制台项目的**编译**、**打包**、**部署**和**使用**。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这篇文章也放到github readme里面一下吧

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

data_dir: /tmp/curve-manager/data # 控制台的数据目录
log_dir: /tmp/curve-manager/logs # 控制台的日志目录
listen_port: 443 # 控制台服务的监听端口
access.api.enable_check: true # 是否开启接口认证
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这些注释好像不是特别清晰,开关的影响是啥?下面几个也是

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

system.log.expiration.days: 30 # 审计日志过期时间,过期内容自动删除
system.alert.expiration.days: 30 # 系统告警信息过期时间,过期内容自动删除
curveadm.service.address: 127.0.0.1:11000 # <必改项>curveadm http service地址
email.addr: [email protected] # 管理邮箱,用于重置密码,发送告警信息
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

应该改成smtp之类的,业界通用应该是(discourse是我们论坛用的APP名称,可以修改或者删掉):
DISCOURSE_SMTP_ADDRESS: smtp.motomirko.pl
DISCOURSE_SMTP_PORT: 465
DISCOURSE_SMTP_USER_NAME: [email protected]
DISCOURSE_SMTP_PASSWORD: secretplainpassword
DISCOURSE_SMTP_ENABLE_START_TLS: true

xsky的邮箱配置界面:
https://www.xsky.com/wp-content/uploads/2019/08/640-19.jpeg

Copy link
Contributor Author

@SeanHai SeanHai Jul 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

需要动代码,这个记个issue后面改下名称。SMTP_ADDRESS 和 SMTP_PORT我们现在是内置默认的,后面如果需要也可以改成可配的。
opencurve/curve-manager#4

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SMTP_ENABLE_START_TLS: true
还少了这个配置项吧?

```

### 部署控制台
Curve 控制台的部署依赖部署工具[CurveAdm](https://github.com/opencurve/curveadm),需提前安装该工具,目前 CurveAdm release 版本并不支持该功能,可升级到dev版本进行体验(升级前可先备份下当前curveadm): `CURVEADM_VERSION=curve-dashboard curveadm -u`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. 备份方法可以提一下
  2. 升级到指定版本命令给了,如果是第一次安装呢?也可以写一下

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@SeanHai SeanHai force-pushed the auth-paper branch 2 times, most recently from e8f6eec to 4e64dc5 Compare July 24, 2023 03:00
@SeanHai SeanHai merged commit 20c33c2 into opencurve:main Jul 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants