Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
tingweiwang
/
auto-update-configmap
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 59bf3ba6
authored
Jan 26, 2021
by
tingweiwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update update_configmap.sh
1 parent
de829530
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
update_configmap.sh
update_configmap.sh
View file @
59bf3ba
#!/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
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment