@@ -41,7 +41,9 @@ curl -sSL https://raw.githubusercontent.com/PaddlePaddle/PaddleFlow/release-0.14
41
41
42
42
43
43
### 2.3 自定义安装
44
- #### 2.3.1 安装paddleflow-server
44
+ #### 2.3.1 安装前创建namespace
45
+ ` kubectl create ns padddleflow `
46
+ #### 2.3.2 安装paddleflow-server
45
47
` paddleflow-server ` 支持多种数据库(` sqlite ` ,` mysql ` ),其中` sqlite ` 仅用于快速部署和体验功能,不适合用于生产环境。
46
48
- ** 指定用sqllite安装paddleflow-server**
47
49
``` shell
@@ -62,8 +64,8 @@ export DB_PORT=3306
62
64
export DB_USER=paddleflow
63
65
export DB_PW=paddleflow
64
66
export DB_DATABASE=paddleflow
65
- wget https://raw.githubusercontent.com/PaddlePaddle/PaddleFlow/develop /installer/database/paddleflow.sql
66
- bash < <( curl -s https://raw.githubusercontent.com/PaddlePaddle/PaddleFlow/develop /installer/database/execute.sh)
67
+ wget https://raw.githubusercontent.com/PaddlePaddle/PaddleFlow/release-0.14.6 /installer/database/paddleflow.sql
68
+ bash < <( curl -s https://raw.githubusercontent.com/PaddlePaddle/PaddleFlow/release-0.14.6 /installer/database/execute.sh)
67
69
# 创建基于mysql的paddleflow-server
68
70
# For x86:
69
71
curl -sSL https://raw.githubusercontent.com/PaddlePaddle/PaddleFlow/release-0.14.6/installer/deploys/paddleflow-server/paddleflow-server-deploy.yaml | \
@@ -72,7 +74,7 @@ sed -e "s/sqlite/${DB_DRIVER}/g" -e "s/host: 127.0.0.1/host: ${DB_HOST}/g" -e
72
74
# For arm64: todo
73
75
```
74
76
75
- #### 2.3.2 安装paddleflow-csi-plugin
77
+ #### 2.3.3 安装paddleflow-csi-plugin
76
78
77
79
1 . 检查 ` kubelet root-dir ` 路径
78
80
@@ -87,9 +89,9 @@ ps -ef | grep kubelet | grep root-dir
87
89
** 如果前面检查命令返回的结果为空** ,无需修改配置,可直接部署:
88
90
``` shell
89
91
# Kubernetes version >= v1.18
90
- kubectl create -f https://raw.githubusercontent.com/PaddlePaddle/PaddleFlow/develop /installer/deploys/paddleflow-csi-plugin/paddleflow-csi-plugin-deploy.yaml -n paddleflow
92
+ kubectl create -f https://raw.githubusercontent.com/PaddlePaddle/PaddleFlow/release-0.14.6 /installer/deploys/paddleflow-csi-plugin/paddleflow-csi-plugin-deploy.yaml -n paddleflow
91
93
# Kubernetes v1.13<version< v1.18
92
- kubectl create -f https://raw.githubusercontent.com/PaddlePaddle/PaddleFlow/develop /installer/deploys/paddleflow-csi-plugin/ paddleflow-csi-plugin-deploy-before-v1-18.yaml -n paddleflow
94
+ kubectl create -f https://raw.githubusercontent.com/PaddlePaddle/PaddleFlow/release-0.14.6 /installer/deploys/paddleflow-csi-plugin/ paddleflow-csi-plugin-deploy-before-v1-18.yaml -n paddleflow
93
95
# 为了在kubernetes == v1.13的集群中部署scsi插件,kubernetes集群需要满足以下配置。
94
96
# kube-apiserver启动参数:
95
97
--feature-gates=CSIDriverRegistry=true
@@ -98,7 +100,7 @@ kubectl create -f https://raw.githubusercontent.com/PaddlePaddle/PaddleFlow/deve
98
100
# kubelet启动参数
99
101
--feature-gates=CSIDriverRegistry=true
100
102
# 1.13环境中的csi安装命令
101
- kubectl create -f https://raw.githubusercontent.com/PaddlePaddle/PaddleFlow/develop /installer/deploys/paddleflow-csi-plugin/paddleflow-csi-plugin-deploy-v1-13.yaml -n paddleflow
103
+ kubectl create -f https://raw.githubusercontent.com/PaddlePaddle/PaddleFlow/release-0.14.6 /installer/deploys/paddleflow-csi-plugin/paddleflow-csi-plugin-deploy-v1-13.yaml -n paddleflow
102
104
```
103
105
104
106
** 如果前面检查命令返回的结果不为空** ,则代表 kubelet 的 root-dir 路径不是默认值,因此需要在 CSI Driver 的部署文件中更新 ` kubeletDir ` 路径并部署:
@@ -120,9 +122,10 @@ curl -sSL https://raw.githubusercontent.com/PaddlePaddle/PaddleFlow/release-0.14
120
122
121
123
> ** 注意** : 请将上述命令中 ` {{KUBELET_DIR}} ` 替换成 kubelet 当前的根目录路径。
122
124
123
- #### 2.3.3 安装volcano
125
+ #### 2.3.4 安装volcano
124
126
``` shell
125
127
# For x86_64:
128
+ kubectl apply -f https://raw.githubusercontent.com/PaddlePaddle/PaddleFlow/release-0.14.6/installer/deploys/volcano/crd.yaml -n paddleflow
126
129
kubectl apply -f https://raw.githubusercontent.com/PaddlePaddle/PaddleFlow/release-0.14.6/installer/deploys/volcano/pf-volcano-deploy.yaml -n paddleflow
127
130
128
131
# For arm64:
0 commit comments