Commit 59bf3ba6 by tingweiwang

Update update_configmap.sh

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