Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aad1482

Browse files
committed
Fix some mistakes of config files for deployment
1 parent 6e6f1fa commit aad1482

File tree

8 files changed

+86
-44
lines changed

8 files changed

+86
-44
lines changed

docs/zh_CN/QuickStartGuide.md

Lines changed: 77 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -20,43 +20,82 @@
2020
|Seldon Core|1.13.0|[https://github.com/SeldonIO/seldon-core](https://github.com/SeldonIO/seldon-core)|
2121
|nfs-utils|1.3.0| |
2222

23-
* 验证Helm
24-
```powershell
25-
$ helm version
26-
version.BuildInfo{Version:"v3.2.1", GitCommit:"fe51cd1e31e6a202cba7dead9552a6d418ded79a", GitTreeState:"clean", GoVersion:"go1.13.10"}
27-
```
28-
* 验证Kubernertes
29-
```powershell
30-
$ kubectl version
31-
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.3", GitCommit:"1e11e4a2108024935ecfcb2912226cedeafd99df", GitTreeState:"clean", BuildDate:"2020-10-14T12:50:19Z", GoVersion:"go1.15.2", Compiler:"gc", Platform:"linux/amd64"}
32-
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.6", GitCommit:"dff82dc0de47299ab66c83c626e08b245ab19037", GitTreeState:"clean", BuildDate:"2020-07-15T16:51:04Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}
23+
* 安装helm-3.2.1
24+
```shell
25+
#下载
26+
wget https://get.helm.sh/helm-v3.2.1-linux-amd64.tar.gz
27+
28+
#安装
29+
tar -xzvf helm-v3.2.1-linux-amd64.tar.gz
30+
cd linux-amd64/
31+
mv helm /usr/bin/
32+
33+
#验证helm版本
34+
helm version
35+
36+
#修改库源
37+
helm repo add aliyuncs https://apphub.aliyuncs.com
38+
helm repo list
3339
```
34-
* 验证Docker
35-
```powershell
36-
$ docker version
37-
...
38-
Client: Docker Engine - Community
39-
Version: 19.03.9
40-
...
41-
Server: Docker Engine - Community
42-
Engine:
43-
Version: 19.03.9
40+
* 修改Kubernertes配置
41+
```shell
42+
#修改k8s配置
43+
vim /etc/kubernetes/manifests/kube-apiserver.yaml
44+
#spec:
45+
# containers:
46+
# - command:
47+
# 中,增加如下配置项
48+
- --service-node-port-range=30000-40000
4449
```
45-
* Seldon Core相关:
46-
```powershell
47-
#部署
48-
kubeclt create namespace seldon-system
49-
helm install seldon-core seldon-core-operator . \ --set usageMetrics.enabled=true \ --namespace seldon-system \ --set istio.enabled=true
50-
#验证
51-
kubectl -n seldon-system get pods
50+
* 修改Docker配置
51+
```shell
52+
vim /root/.docker/config.json
53+
#增加如下配置
54+
{
55+
"auths": {
56+
"": {
57+
"auth": ""
58+
}
59+
},
60+
"HttpHeaders": {
61+
"User-Agent": "Docker-Client/20.10.8-ce (linux)"
62+
}
63+
}
5264
```
65+
66+
5367
* Istio相关:
54-
```powershell
68+
```shell
69+
#下载
70+
wget https://github.com/istio/istio/releases/download/1.8.2/istio-1.8.2-linux-amd64.tar.gz
71+
72+
#设置istioctl环境变量
73+
export PATH=$PATH:/opt/istio-1.8.2/bin
74+
5575
#部署
5676
istioctl install
77+
5778
#验证,查看相关Pod是否正常Running
5879
kubectl -n istio-system get pods
5980
```
81+
82+
83+
* Seldon Core相关:
84+
85+
```shell
86+
#下载
87+
wget https://github.com/SeldonIO/seldon-core/archive/refs/tags/v1.13.0.tar.gz
88+
89+
#部署
90+
kubeclt create namespace seldon-system
91+
cd seldon-core-1.13.0/helm-charts
92+
helm install seldon-core seldon-core-operator --set usageMetrics.enabled=true --namespace seldon-system --set istio.enabled=true
93+
#验证
94+
kubectl -n seldon-system get pods
95+
```
96+
97+
98+
6099
### 2.3 目录挂载(若不需共享目录可先跳过)
61100

62101
Prophecis使用nfs来存储容器运行数据,需要挂载nfs
@@ -93,7 +132,7 @@ mount ${NFS_SERVER_IP}:${NFS_PATH_LOG} ${NFS_PATH_LOG}
93132
# MySQL数据库名 DATABASE_DB='mlss_db'
94133
# MySQL用户名 DATABASE_USERNAME='mlss'
95134
# MySQL用户密码 DATABASE_PASSWORD='123'
96-
database:
135+
db:
97136
server: ${DATABASE_IP}
98137
port: ${DATABASE_PORT}
99138
name: ${DATABASE_DB}
@@ -103,11 +142,9 @@ database:
103142
## 配置UI的URL访问路径
104143
# 网页访问地址 SERVER_IP='127.0.0.1'
105144
# 网页访问端口 SERVER_PORT='30803'
106-
server_ui_gateway: ${SERVER_IP}:30778
107-
ui:
108-
service:
109-
bdap:
110-
nodePost: ${SERVER_PORT}
145+
gateway:
146+
address: ${SERVER_IP}
147+
port: ${SERVER_PORT}
111148
112149
## Prophecis使用LDAP来负责统一认证
113150
# LDAP的服务地址 LDAP_ADDRESS='ldap://127.0.0.1:1389/'
@@ -116,6 +153,11 @@ cc:
116153
ldap:
117154
address: ${LDAP_ADDRESS}
118155
baseDN: ${LDAP_BASE_DN}
156+
157+
#超级管理员的用户名密码,可以改成自己需要的,需对应数据库表t_superadmin
158+
admin:
159+
user: ${SUPER_USER}
160+
password: ${SUPER_USER_PASSWORD}
119161
```
120162
## 4. 操作序列
121163

@@ -148,7 +190,7 @@ helm install notebook-controller ./notebook-controller
148190
## 安装MinIO组件
149191
helm install minio-prophecis --namespace prophecis ./MinioDeployment
150192
## 安装prophecis组件
151-
helm install prophecis ./prophecis
193+
helm install prophecis ./Prophecis
152194
```
153195
### 4.3 MLFlow实验工作流相关(mlflow appconn安装)
154196

install/Prophecis/templates/mf/mf-configmap.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ data:
7979
8080
8181
Dockerfile: |
82-
FROM uat.sf.dockerhub.stgwebank/webank/mlss-mf:MLSS-MF_1.14.0_Docker-Base
82+
FROM wedatasphere/prophecis:MLSS-MF_1.14.0_Docker-Base
8383
COPY ./model/ /app
8484
WORKDIR /app
8585
#RUN pip install -i http://127.0.0.1:13141/root/pypi/+simple/ -r requirements.txt --trusted-host=127.0.0.1

install/Prophecis/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ db:
1111
user: prophecis
1212
pwd: password
1313
image:
14-
registry: uat.sf.dockerhub.stgwebank/webank/prophecis
14+
registry: wedatasphere/prophecis
1515
pullPolicy: Always
1616
gateway:
1717
address: 127.0.0.1

install/log/job-log-collecter/fluent-bit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ spec:
5353
xxx_nounkeyedliteral: {}
5454
xxx_unrecognized: []
5555
xxx_sizecache: 0
56-
image: uat.sf.dockerhub.stgwebank/webank/mlss-di:fluent-bit-1.2.1
56+
image: wedatasphere/prophecis:fluent-bit-1.2.1
5757
imagePullPolicy: Always
5858
name: log-collector
5959
resources:

install/log/pod-log-collector/fluent-bit-prophecis/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace: logging
1111

1212
image:
1313
# repository: fluent/fluent-bit
14-
repository: uat.sf.dockerhub.stgwebank/webank/mlss-di
14+
repository: wedatasphere/prophecis
1515
pullPolicy: IfNotPresent
1616
tag: fluent-bit-1.7.5-debug
1717

install/sql/prophecis-data.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88

99
-- 导出 mlss_gzpc_bdap_uat_01 的数据库结构
10-
CREATE DATABASE IF NOT EXISTS `mlss_gzpc_bdap_uat_01` /*!40100 DEFAULT CHARACTER SET utf8 */;
11-
USE `mlss_gzpc_bdap_uat_01`;
10+
CREATE DATABASE IF NOT EXISTS `prophecis_db` /*!40100 DEFAULT CHARACTER SET utf8 */;
11+
USE `prophecis_db`;
1212

1313
-- 导出 表 mlss_gzpc_bdap_uat_01.t_group 结构
1414
CREATE TABLE IF NOT EXISTS `t_group` (

install/sql/prophecis.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88

99
-- 导出 mlss_gzpc_bdap_uat_01 的数据库结构
10-
CREATE DATABASE IF NOT EXISTS `mlss_gzpc_bdap_uat_01` /*!40100 DEFAULT CHARACTER SET utf8 */;
11-
USE `mlss_gzpc_bdap_uat_01`;
10+
CREATE DATABASE IF NOT EXISTS `prophecis_db` /*!40100 DEFAULT CHARACTER SET utf8 */;
11+
USE `prophecis_db`;
1212

1313
-- 导出 表 mlss_gzpc_bdap_uat_01.t_experiment 结构
1414
CREATE TABLE IF NOT EXISTS `t_experiment` (

mf/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
registry = uat.sf.dockerhub.stgwebank/webank
1+
registry = wedatasphere
22
repo = prophecis
33
version = v0.3.0
44
tag = mf-server-$(version)

0 commit comments

Comments
 (0)