Commit 59bf3ba6 by tingweiwang

Update update_configmap.sh

1 parent de829530
Showing with 6 additions and 8 deletions
#!/bin/bash
branch=develop
seetaas_deploy_workspace=/root/seetaas-deploy
echo "开始判断configmap-kpl目录是否在目标位置"
sleep 3
if [ ! -d "/root/configmap-kpl" ]; then
......@@ -8,14 +10,10 @@ rm -rf /root/configmap-kpl
fi
echo "#################下载新版本的configmap配置模板#################"
sleep 3
git clone git@gitlab.seetatech.com:tingweiwang/configmap-kpl.git /root/configmap-kpl
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
git clone -b $branch git@gitlab.seetatech.com:tingweiwang/configmap-kpl.git /root/configmap-kpl
echo "###########执行ansible roles渲染configmap配置文件#############"
cd $seetaas_deploy_workspace && ansible-playbook -i environments/ksy/hosts replace-configmap.yml && ansible-playbook -i environments/ksy/hosts replace-configmap-autodl.ym
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!