切换导航条
此项目
正在载入...
登录
allied-creation
/
performance
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
Administrator
2 years ago
提交
c01d14abaa6e4b4eb3ccd1479cc30290cdf395d9
1 个父辈
a3b15bbc
增加新文件
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
43 行增加
和
0 行删除
deploy/k8s/prd/install.sh
deploy/k8s/prd/install.sh
0 → 100644
查看文件 @
c01d14a
#!/bin/bash
export
PATH
=
/root/local/bin:
$PATH
kubectl -n mmm-suplus-prd get pods | grep -q performance-back
if
[
"
$?
"
==
"1"
]
;
then
kubectl create -f /tmp/prd/performance-back/performance-back.yaml --record
kubectl -n mmm-suplus-prd get svc | grep -q performance-back
if
[
"
$?
"
==
"0"
]
;
then
echo
"performance-back service install success!"
else
echo
"performance-back service install fail!"
fi
kubectl -n mmm-suplus-prd get pods | grep -q performance-back
if
[
"
$?
"
==
"0"
]
;
then
echo
"performance-back deployment install success!"
else
echo
"performance-back deployment install fail!"
fi
else
kubectl delete -f /tmp/prd/performance-back/performance-back.yaml
kubectl -n mmm-suplus-prd get svc | grep -q performance-back
while
[
"
$?
"
==
"0"
]
do
kubectl -n mmm-suplus-prd get svc | grep -q performance-back
done
kubectl -n mmm-suplus-prd get pods | grep -q performance-back
while
[
"
$?
"
==
"0"
]
do
kubectl -n mmm-suplus-prd get pods | grep -q performance-back
done
kubectl create -f /tmp/prd/performance-back/performance-back.yaml --record
kubectl -n mmm-suplus-prd get svc | grep -q performance-back
if
[
"
$?
"
==
"0"
]
;
then
echo
"performance-back service update success!"
else
echo
"performance-back service update fail!"
fi
kubectl -n mmm-suplus-prd get pods | grep -q performance-back
if
[
"
$?
"
==
"0"
]
;
then
echo
"performance-back deployment update success!"
else
echo
"performance-back deployment update fail!"
fi
fi
\ No newline at end of file
...
...
请
注册
或
登录
后发表评论