20
20
| Seldon Core| 1.13.0| [ https://github.com/SeldonIO/seldon-core ] ( https://github.com/SeldonIO/seldon-core ) |
21
21
| nfs-utils| 1.3.0| |
22
22
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
33
39
```
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
44
49
```
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
+ }
52
64
```
65
+
66
+
53
67
* 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
+
55
75
# 部署
56
76
istioctl install
77
+
57
78
# 验证,查看相关Pod是否正常Running
58
79
kubectl -n istio-system get pods
59
80
```
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
+
60
99
### 2.3 目录挂载(若不需共享目录可先跳过)
61
100
62
101
Prophecis使用nfs来存储容器运行数据,需要挂载nfs
@@ -93,7 +132,7 @@ mount ${NFS_SERVER_IP}:${NFS_PATH_LOG} ${NFS_PATH_LOG}
93
132
# MySQL数据库名 DATABASE_DB='mlss_db'
94
133
# MySQL用户名 DATABASE_USERNAME='mlss'
95
134
# MySQL用户密码 DATABASE_PASSWORD='123'
96
- database :
135
+ db :
97
136
server: ${DATABASE_IP}
98
137
port: ${DATABASE_PORT}
99
138
name: ${DATABASE_DB}
@@ -103,11 +142,9 @@ database:
103
142
## 配置UI的URL访问路径
104
143
# 网页访问地址 SERVER_IP='127.0.0.1'
105
144
# 网页访问端口 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}
111
148
112
149
## Prophecis使用LDAP来负责统一认证
113
150
# LDAP的服务地址 LDAP_ADDRESS='ldap://127.0.0.1:1389/'
116
153
ldap:
117
154
address: ${LDAP_ADDRESS}
118
155
baseDN: ${LDAP_BASE_DN}
156
+
157
+ #超级管理员的用户名密码,可以改成自己需要的,需对应数据库表t_superadmin
158
+ admin:
159
+ user: ${SUPER_USER}
160
+ password: ${SUPER_USER_PASSWORD}
119
161
```
120
162
## 4. 操作序列
121
163
@@ -148,7 +190,7 @@ helm install notebook-controller ./notebook-controller
148
190
## 安装MinIO组件
149
191
helm install minio-prophecis --namespace prophecis ./MinioDeployment
150
192
## 安装prophecis组件
151
- helm install prophecis ./prophecis
193
+ helm install prophecis ./Prophecis
152
194
```
153
195
### 4.3 MLFlow实验工作流相关(mlflow appconn安装)
154
196
0 commit comments