Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy studio with helm desc changes #1154

Merged
merged 2 commits into from
Nov 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ Nebula Graph历史版本指低于Nebula Graph v2.0.0-GA的版本,本文介绍
- clone 源代码

```
# git clone --branch v{{nebula.release}} https://github.com/vesoft-inc/nebula-graph.git
# git clone --branch {{nebula.branch}} https://github.com/vesoft-inc/nebula-graph.git
```

- 设置 CMake

```
# cmake -DCMAKE_INSTALL_PREFIX=${nebula-new} -DENABLE_BUILD_STORAGE=on -DENABLE_TESTING=OFF -DCMAKE_BUILD_TYPE=Release -DNEBULA_COMMON_REPO_TAG=v{{nebula.release}} -DNEBULA_STORAGE_REPO_TAG=v{{nebula.release}} ..
# cmake -DCMAKE_INSTALL_PREFIX=${nebula-new} -DENABLE_TESTING=OFF -DCMAKE_BUILD_TYPE=Release ..
```

2. 拷贝配置文件。
Expand Down
36 changes: 18 additions & 18 deletions docs-2.0/nebula-studio/deploy-connect/st-ug-deploy-by-helm.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# 使用 Helm 部署 Studio
# 使用Helm部署Studio

本文介绍如何在通过 Kubernetes 集群里用 Helm 来部署并启动 Studio
本文介绍如何在Kubernetes中使用Helm部署并启动Studio

## 前提条件

安装 Studio 前,用户需要安装以下软件并确保安装版本的正确性:
安装Studio前,用户需要安装以下软件并确保安装版本的正确性:

| 软件 | 版本要求 |
| ------------------------------------------------------------ | --------- |
Expand All @@ -13,7 +13,7 @@

## 安装

1. 克隆 Studio 的源代码到主机
1. 克隆Studio的源代码到主机

```bash
$ git clone https://github.com/vesoft-inc/nebula-studio.git
Expand All @@ -25,13 +25,13 @@
$ cd nebula-studio
```

3. 安装 Studio 到 Helm Chart,命名为 `my-studio`。
3. 更新并安装Nebula Graph Studio chart,命名为`my-studio`。

```bash
$ helm upgrade --install my-studio --set service.type=NodePort --set service.port=30070 deployment/helm
$ helm upgrade --install my-studio --set service.type=NodePort --set service.port={30070} deployment/helm
```

4. 启动成功后,在浏览器地址栏输入 `http://address-of-node:30070/`。
4. 启动成功后,在浏览器地址栏输入`http://{address-of-node}:{30070}/`。
如果在浏览器窗口中能看到以下登录界面,表示已经成功部署并启动 Studio。

![Nebula Graph Studio 登录界面](../figs/st-ug-001-1.png "Nebula Graph Studio 登录界面")
Expand All @@ -44,23 +44,23 @@ $ helm uninstall my-studio

## 后续操作

进入 Studio 登录界面后,用户需要连接 Nebula Graph。详细信息,参考[连接数据库](st-ug-connect.md)。
进入Studio登录界面后,用户需要连接Nebula Graph。详细信息,参考[连接数据库](st-ug-connect.md)。

## Nebula Graph Studio Chart配置参数说明
## Nebula Graph Studio chart配置参数说明

| 参数 | 默认值 | 描述 |
|:---|:---|:---|
| replicaCount | 0 | Deployment的副本数。 |
| image.httpGateway.name | vesoft/nebula-http-gateway | nebula-http-gateway 镜像的仓库地址。 |
| image.nebulaStudio.name | vesoft/nebula-graph-studio | nebula-graph-studio 镜像的仓库地址。 |
| image.nginx.name | nginx | nginx 镜像的仓库地址。 |
| image.httpGateway.version | v2.1.1 | nebula-http-gateway 的版本。 |
| image.nebulaStudio.version | v3.1.0 | nebula-graph-studio 的版本。 |
| image.nginx.version | alpine | nginx 的版本。 |
| image.httpGateway.name | vesoft/nebula-http-gateway | nebula-http-gateway镜像的仓库地址。 |
| image.nebulaStudio.name | vesoft/nebula-graph-studio | nebula-graph-studio镜像的仓库地址。 |
| image.nginx.name | nginx | nginx镜像的仓库地址。 |
| image.httpGateway.version | v2.1.1 | nebula-http-gateway的版本。 |
| image.nebulaStudio.version | v3.1.0 | nebula-graph-studio的版本。 |
| image.nginx.version | alpine | nginx的版本。 |
| service.type | ClusterIP | 服务类型,必须为`NodePort`,`ClusterIP`或`LoadBalancer`其中之一。 |
| service.port | 7001 | nebula-graph-studio 中 web 服务的端口。 |
| resources.httpGateway | {} | nebula-http-gateway 的资源限制/请求。 |
| service.port | 7001 | nebula-graph-studio中web服务的端口。 |
| resources.httpGateway | {} | nebula-http-gateway的资源限制/请求。 |
| resources.nebulaStudio | {} | nebula-studio的资源限制/请求。 |
| resources.nginx | {} | nginx 的资源限制/请求。 |
| resources.nginx | {} | nginx的资源限制/请求。 |
| persistent.storageClassName | "" | storageClass名称,如果不指定就使用默认值。 |
| persistent.size | 5Gi | 存储盘大小。 |