Commit 8d3c09c3 by wangtingwei

优化为相对路径

1 parent 9e21acee
Showing with 11 additions and 1 deletions
...@@ -37,9 +37,19 @@ kubectl delete -f k8s_yaml/kpl-launcher/ && sleep 2 ...@@ -37,9 +37,19 @@ kubectl delete -f k8s_yaml/kpl-launcher/ && sleep 2
kubectl delete secrets -n volcano-system volcano-admission-secret kubectl delete secrets -n volcano-system volcano-admission-secret
} }
create_server () { create_server () {
kubectl apply -f k8s_yaml/kpl-ssl-configmap.yaml kubectl apply -f k8s_yaml/kpl-ssl-configmap.yaml
kubectl apply -f k8s_yaml/kpl-ssl-configmap-autodl.yaml kubectl apply -f k8s_yaml/kpl-ssl-configmap-autodl.yaml
kubectl apply -f k8s_yaml/kpl-launcher/rbac.yaml
kubectl apply -f /k8s_yaml/volcano/ #在/tmp目录下创建volcano和kpl-launcher服务
kubectl apply -f /tmp/deployment-$date.yaml && sleep 3
}
private_create_server () {
kubectl apply -f k8s_yaml/kpl-ssl-configmap.yaml
kubectl apply -f k8s_yaml/kpl-ssl-configmap-autodl.yaml
kubectl apply -f k8s_yaml/kpl-launcher/rbac.yaml
kubectl apply -f /tmp/volcano-development-$date.yaml && sleep 3 #在/tmp目录下创建volcano和kpl-launcher服务 kubectl apply -f /tmp/volcano-development-$date.yaml && sleep 3 #在/tmp目录下创建volcano和kpl-launcher服务
kubectl apply -f /tmp/deployment-$date.yaml && sleep 3 kubectl apply -f /tmp/deployment-$date.yaml && sleep 3
} }
...@@ -53,7 +63,7 @@ create_server ...@@ -53,7 +63,7 @@ create_server
private_deploy () { private_deploy () {
delete_server delete_server
private_sed_image_name private_sed_image_name
create_server private_create_server
} }
case $1 in case $1 in
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!