Skip to content

Commit 2d58a8d

Browse files
authored
Merge pull request #16 from alexzyWu/dev-0.2.0
Update Doc & Setting
2 parents 54c4709 + 3f4732c commit 2d58a8d

File tree

4 files changed

+54
-18
lines changed

4 files changed

+54
-18
lines changed

cc/sql/prophecis-data.sql

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,17 +177,30 @@ INSERT INTO `t_role_permission` (`id`, `role_id`, `permission_id`, `enable_flag`
177177
(81, 2, 38, 0, '2019-11-11 18:15:36'),
178178
(82, 1, 39, 1, '2019-11-11 18:15:36'),
179179
(83, 2, 39, 1, '2019-11-11 18:15:36'),
180-
(84, 1, 43, 1, '2019-11-11 18:15:36'),
181-
(85, 2, 43, 1, '2019-11-11 18:15:36'),
182180
(86, 1, 40, 1, '2019-11-11 18:15:37'),
183181
(87, 2, 40, 1, '2019-11-11 18:15:37'),
184-
(88, 1, 41, 1, '2019-11-11 18:15:37'),
185-
(89, 2, 41, 1, '2019-11-11 18:15:37'),
186-
(90, 1, 42, 1, '2019-11-11 18:15:37'),
187-
(91, 2, 42, 1, '2019-11-11 18:15:37'),
188-
(92, 1, 44, 1, '2019-11-11 18:15:37'),
189-
(93, 2, 44, 1, '2019-11-11 18:15:37');
190-
/*!40000 ALTER TABLE `t_role_permission` ENABLE KEYS */;
182+
(108, 1, 41, 1, '2021-03-01 16:36:21'),
183+
(109, 1, 42, 1, '2021-03-01 16:36:21'),
184+
(110, 1, 43, 1, '2021-03-01 16:36:21'),
185+
(111, 1, 44, 1, '2021-03-01 16:36:21'),
186+
(112, 1, 45, 1, '2021-03-01 16:36:21'),
187+
(113, 1, 46, 1, '2021-03-01 16:36:21'),
188+
(114, 1, 47, 1, '2021-03-01 16:36:21'),
189+
(115, 1, 48, 1, '2021-03-01 16:36:21'),
190+
(116, 1, 49, 1, '2021-03-01 16:36:21'),
191+
(117, 1, 50, 1, '2021-03-01 16:36:21'),
192+
(118, 2, 41, 1, '2021-03-01 16:36:21'),
193+
(119, 2, 42, 1, '2021-03-01 16:36:22'),
194+
(120, 2, 43, 1, '2021-03-01 16:36:22'),
195+
(121, 2, 44, 1, '2021-03-01 16:36:22'),
196+
(122, 2, 45, 1, '2021-03-01 16:36:22'),
197+
(123, 2, 46, 1, '2021-03-01 16:36:22'),
198+
(124, 2, 47, 1, '2021-03-01 16:36:22'),
199+
(125, 2, 48, 1, '2021-03-01 16:36:22'),
200+
(126, 2, 49, 1, '2021-03-01 16:36:22'),
201+
(127, 2, 50, 1, '2021-03-01 16:36:22'),
202+
(128, 2, 51, 1, '2021-03-01 16:58:16'),
203+
(129, 1, 51, 1, '2021-03-01 16:58:20');
191204

192205
-- 导出 表 mlss_gzpc_bdap_uat_01.t_superadmin 结构
193206
CREATE TABLE IF NOT EXISTS `t_superadmin` (

docs/zh_CN/QuickStartGuide.md

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,26 @@ source prophecis-data.sql #permission数据
3535

3636
- Prophecis对Kubeflow提供的Notebook Controller进行NodePort SVC的扩展,用于PySpark Session的创建,如需使用可从wedatasphere仓库拉取。
3737

38-
```
38+
```shell
3939
cd ./helm-charts/notebook-controller
4040
helm install notebook-controller .
4141
```
4242

43+
#### 五、部署MinIO及Log Collector
44+
45+
- MinIO
46+
```shell
47+
cd ./helm-charts/MinioDeployment
48+
helm install minio-prophecis --namespace prophecis .
49+
```
50+
51+
- Log Collector
52+
```shell
53+
cd ./helm-charts/
54+
kubectl apply -f ./LogCollectorDS
55+
```
4356

44-
#### 、修改配置
57+
#### 、修改配置
4558

4659
- 修改ui nginx反向代理配置(values.yml文件,host ip + nodeport):
4760

@@ -50,9 +63,11 @@ cc:
5063
server: 127.0.0.1:30778
5164
aide:
5265
server: 127.0.0.1:30778
66+
di:
67+
server: 127.0.0.1:30778
5368
```
5469

55-
- 修改数库配置(values.yml文件):
70+
- 修改数库配置(values.yml文件,db配置一致即可):
5671

5772
```shell
5873
cc:
@@ -62,6 +77,14 @@ cc:
6277
name: prophecis_db
6378
user: prophecis
6479
pwd: password
80+
datasource:
81+
userName: prophecis
82+
userPwd: prophecis
83+
url: 127.0.0.1
84+
port: 3306
85+
db: prophecis_db
86+
encryptPwd: ""
87+
privKey: ""
6588
```
6689
- 登录采用通过LDAP方案,需要配置values中的ldap address和baseDN变量:
6790
```shell
@@ -76,12 +99,12 @@ cc:
7699
kubectl label nodes prophecis01 mlss-node-role=platform
77100
```
78101

79-
#### 、管理员用户
102+
#### 、管理员用户
80103

81104
- 默认的管理员用户为admin,账号密码通过values中的admin进行配置。
82105
- 若需要新增SA用户,需要在t_superadmin和t_user中增加对应的用户记录;
83106

84-
#### 、部署命令
107+
#### 、部署命令
85108

86109
```shell
87110
kubectl create namespace prophecis
@@ -90,7 +113,7 @@ kubectl create namespace prophecis
90113
helm install prophecis .
91114
```
92115

93-
#### 、关键配置解释
116+
#### 、关键配置解释
94117
- platformNodeSelectors:prophecis服务运行label
95118

96119
- cc:

helm-charts/Prophecis/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ ui:
118118
- name: Prophecis_1.8.0_tensorflow-1.13.1-jupyterlab-cpu-v0.5.0
119119
- name: Prophecis_1.8.0_tensorflow-1.13.1-jupyterlab-gpu-v0.5.0
120120
- name: Prophecis_1.8.0_tensorflow-1.12.0-jupyterlab-gpu-v0.5.0
121-
- name: Prophecis_1.8.0_tensorflow-1.12.0-jupyterlab-cpu-v0.5
121+
- name: Prophecis_1.8.0_tensorflow-1.12.0-jupyterlab-cpu-v0.5.0
122122
di:
123123
server: 127.0.0.1:30778
124124
image:

helm-charts/k8s 1.18.6/notebook-controller/templates/notebook-controller-0.5.1.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ spec:
112112
- name: POD_LABELS
113113
value: gcp-cred-secret=user-gcp-sa,gcp-cred-secret-filename=user-gcp-sa.json
114114
# image: gcr.io/kubeflow-images-public/notebook-controller:v20190401-v0.4.0-rc.1-308-g33618cc9-e3b0c4
115-
image: {{.Values.aide.controller.notebook.repository}}:{{.Values.aide.controller.notebook.tag}}
116-
imagePullPolicy: {{.Values.aide.controller.notebook.pullPolicy}}
115+
image: {{.Values.mllabis.controller.notebook.repository}}:{{.Values.mllabis.controller.notebook.tag}}
116+
imagePullPolicy: {{.Values.mllabis.controller.notebook.pullPolicy}}
117117
name: manager
118118
# nodeSelector:
119119
# kubernetes.io/hostname: mlssdi010007

0 commit comments

Comments
 (0)