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 3d60db87
authored
Jun 12, 2020
by
tingweiwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
0 parents
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
update_configmap.sh
update_configmap.sh
0 → 100755
View file @
3d60db8
#!/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
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