Commit 3d60db87 by tingweiwang

update

0 parents
Showing with 21 additions and 0 deletions
#!/bin/bash
echo "开始判断configmap-kpl目录是否在目标位置"
sleep 3
if [ ! -d "/root/configmap-kpl" ]; then
echo "##############请检查configmap-kpl是否在/root目录下#########" && exit 111
else
rm -rf /root/configmap-kpl
fi
echo "#################克隆下载自动更新configmap脚本#################"
sleep 3
git clone git@gitlab.seetatech.com:tingweiwang/auto-update-configmap.git /root/
echo "###########执行test-deploy.sh渲染configmap配置文件#############"
sh /home/wangtingwei/workspace/test-deploy.sh
echo "重新apply更新configmap资源"
sleep 3
kubectl apply -f /root/configmap-kpl/autodl-core
kubectl apply -f /root/configmap-kpl/autodl
kubectl apply -f /root/configmap-kpl/kpl
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!