Commit 06d748ca by tingweiwang

Update deploy-gpu-k8s.sh

1 parent c482ca50
Showing with 12 additions and 8 deletions
...@@ -458,16 +458,20 @@ echo "为gpu节点打标签" ...@@ -458,16 +458,20 @@ echo "为gpu节点打标签"
kubectl label node $host_name autodl=true kpl=true gpu=true cpu=true user_job_node=true internal_service_node=true kubectl label node $host_name autodl=true kpl=true gpu=true cpu=true user_job_node=true internal_service_node=true
echo "###################创建pv pvc#############" echo "###################创建pv pvc#############"
echo "########################修改pv模板#######################" && sleep 3 echo "########################修改pv模板#######################" && sleep 3
sed -i s@NFS_PATH@$NFS_PATH@g /root/k8s/autodl_kpl_base/autodl-nfs/4-pv_pvc.yaml sed -i s@NFS_PATH@$NFS_PATH@g `find /root/k8s/autodl_kpl_base/ -maxdepth 2 -name "*.yaml" -type f`
sed -i s@NFS_PATH@$NFS_PATH@g /root/k8s/autodl_kpl_base/kpl-nfs/4-pv_pvc.yaml sed -i s@NFS_PATH_2@$NFS_PATH_2@g `find /root/k8s/autodl_kpl_base/ -maxdepth 2 -name "*.yaml" -type f`
sed -i s@NFS_SERVER@$NFS_SERVER@g /root/k8s/autodl_kpl_base/autodl-nfs/4-pv_pvc.yaml sed -i s@NFS_PATH_3@$NFS_PATH_3@g `find /root/k8s/autodl_kpl_base/ -maxdepth 2 -name "*.yaml" -type f`
sed -i s@NFS_SERVER@$NFS_SERVER@g /root/k8s/autodl_kpl_base/kpl-nfs/4-pv_pvc.yaml sed -i s@NFS_SERVER@$NFS_SERVER@g `find /root/k8s/autodl_kpl_base/ -maxdepth 2 -name "*.yaml" -type f`
sed -i s@NFS_SERVER_2@$NFS_SERVER_2@g `find /root/k8s/autodl_kpl_base/ -maxdepth 2 -name "*.yaml" -type f`
sed -i s@NFS_SERVER_3@$NFS_SERVER_3@g `find /root/k8s/autodl_kpl_base/ -maxdepth 2 -name "*.yaml" -type f`
kubectl apply -f /root/k8s/autodl_kpl_base/autodl-nfs kubectl apply -f /root/k8s/autodl_kpl_base/autodl-nfs
kubectl apply -f /root/k8s/autodl_kpl_base/kpl-nfs kubectl apply -f /root/k8s/autodl_kpl_base/kpl-nfs
echo "###################还原pv pvc模板配置#############" && sleep 2 echo "###################还原pv pvc模板配置#############" && sleep 2
sed -i s@$NFS_PATH@NFS_PATH@g /root/k8s/autodl_kpl_base/autodl-nfs/4-pv_pvc.yaml sed -i s@$NFS_PATH@NFS_PATH@g `find /root/k8s/autodl_kpl_base/ -maxdepth 2 -name "*.yaml" -type f`
sed -i s@$NFS_PATH@NFS_PATH@g /root/k8s/autodl_kpl_base/kpl-nfs/4-pv_pvc.yaml sed -i s@$NFS_PATH_2@NFS_PATH_2@g `find /root/k8s/autodl_kpl_base/ -maxdepth 2 -name "*.yaml" -type f`
sed -i s@$NFS_SERVER@NFS_SERVER@g /root/k8s/autodl_kpl_base/autodl-nfs/4-pv_pvc.yaml sed -i s@$NFS_PATH_3@NFS_PATH_3@g `find /root/k8s/autodl_kpl_base/ -maxdepth 2 -name "*.yaml" -type f`
sed -i s@$NFS_SERVER@NFS_SERVER@g /root/k8s/autodl_kpl_base/kpl-nfs/4-pv_pvc.yaml sed -i s@$NFS_SERVER@NFS_SERVER@g `find /root/k8s/autodl_kpl_base/ -maxdepth 2 -name "*.yaml" -type f`
sed -i s@$NFS_SERVER_2@NFS_SERVER_2@g `find /root/k8s/autodl_kpl_base/ -maxdepth 2 -name "*.yaml" -type f`
sed -i s@$NFS_SERVER_3@NFS_SERVER_3@g `find /root/k8s/autodl_kpl_base/ -maxdepth 2 -name "*.yaml" -type f`
echo "创建autodl push 镜像所需secret证书,用于configmap" echo "创建autodl push 镜像所需secret证书,用于configmap"
sh /root/k8s/autodl_kpl_base/create-harbor-secret.sh sh /root/k8s/autodl_kpl_base/create-harbor-secret.sh
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!