正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | export PATH=/root/local/bin:$PATH | 2 | export PATH=/root/local/bin:$PATH |
3 | kubectl -n mmm-suplus-prd get pods | grep -q mmmpartner | 3 | kubectl -n mmm-suplus-prd get pods | grep -q mmmpartner |
4 | if [ "$?" == "1" ];then | 4 | if [ "$?" == "1" ];then |
5 | - kubectl create -f /tmp/test/partner/partner.yaml --record | 5 | + kubectl create -f /tmp/prd/partner/partner.yaml --record |
6 | kubectl -n mmm-suplus-prd get svc | grep -q mmmpartner | 6 | kubectl -n mmm-suplus-prd get svc | grep -q mmmpartner |
7 | if [ "$?" == "0" ];then | 7 | if [ "$?" == "0" ];then |
8 | echo "mmmpartner service install success!" | 8 | echo "mmmpartner service install success!" |
@@ -16,7 +16,7 @@ if [ "$?" == "1" ];then | @@ -16,7 +16,7 @@ if [ "$?" == "1" ];then | ||
16 | echo "mmmpartner deployment install fail!" | 16 | echo "mmmpartner deployment install fail!" |
17 | fi | 17 | fi |
18 | else | 18 | else |
19 | - kubectl delete -f /tmp/test/partner/partner.yaml | 19 | + kubectl delete -f /tmp/prd/partner/partner.yaml |
20 | kubectl -n mmm-suplus-prd get svc | grep -q mmmpartner | 20 | kubectl -n mmm-suplus-prd get svc | grep -q mmmpartner |
21 | while [ "$?" == "0" ] | 21 | while [ "$?" == "0" ] |
22 | do | 22 | do |
@@ -27,7 +27,7 @@ else | @@ -27,7 +27,7 @@ else | ||
27 | do | 27 | do |
28 | kubectl -n mmm-suplus-prd get pods | grep -q mmmpartner | 28 | kubectl -n mmm-suplus-prd get pods | grep -q mmmpartner |
29 | done | 29 | done |
30 | - kubectl create -f /tmp/test/partner/partner.yaml --record | 30 | + kubectl create -f /tmp/prd/partner/partner.yaml --record |
31 | kubectl -n mmm-suplus-prd get svc | grep -q mmmpartner | 31 | kubectl -n mmm-suplus-prd get svc | grep -q mmmpartner |
32 | if [ "$?" == "0" ];then | 32 | if [ "$?" == "0" ];then |
33 | echo "mmmpartner service update success!" | 33 | echo "mmmpartner service update success!" |
-
请 注册 或 登录 后发表评论