Commit c5f54762 by tingweiwang

修复[ ]前后不加空格问题

1 parent 0c812ba6
Showing with 2 additions and 2 deletions
......@@ -203,7 +203,7 @@ ansible master -m shell -a "systemctl daemon-reload && service flanneld restart
###################################根据不同节点类型,安装设置docker#####################################
echo "判断当前节点是gpu,还是cpu节点,根据节点不同,完成不同操作&& sleep 2"
lspci |grep -i vga |grep -v ASPEED >/dev/null
if [ $? -eq 0];then
if [ $? -eq 0 ];then
echo "当前节点是GPU节点,开始按照docker" && sleep 2 && apt install nvidia-docker2 --allow-unauthenticated -y
echo "当前harbor仓库地址为$harbor_host"
sed -i s/harbor_host/$harbor_host/g /root/k8s/config/daemon.json_gpu
......@@ -473,7 +473,7 @@ echo "隸キ謇句勘蝨ィmaster闃らせ 隶セ鄂ョ蜻ス莉、閾ェ蜉ィ陦・蜈ィ悟多莉、蝨ィ閼壽悽譛蜷惹
#source <(kubectl completion bash) && echo "source <(kubectl completion bash)" >> ~/.bashrc"
##############################################################################
lspci |grep -i vga |grep -v ASPEED
if [ $? -eq 0];then
if [ $? -eq 0 ];then
echo "为gpu节点打lable" && sleep 1
kubectl label node $host_name autodl=true kpl=true gpu=true cpu=true user_job_node=true internal_service_node=true
else
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!