正在显示
1 个修改的文件
包含
20 行增加
和
20 行删除
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | export PATH=/root/local/bin:$PATH | 2 | export PATH=/root/local/bin:$PATH |
3 | -kubectl -n <replace-your-k8s-namespace> get pods | grep -q project | 3 | +kubectl -n mmm-suplus-dev get pods | grep -q allied-creation-gateway |
4 | if [ "$?" == "1" ];then | 4 | if [ "$?" == "1" ];then |
5 | - kubectl create -f /tmp/dev/project/project.yaml --record | ||
6 | - kubectl -n <replace-your-k8s-namespace> get svc | grep -q project | 5 | + kubectl create -f /tmp/dev/allied-creation-gateway/allied-creation-gateway.yaml --record |
6 | + kubectl -n mmm-suplus-dev get svc | grep -q allied-creation-gateway | ||
7 | if [ "$?" == "0" ];then | 7 | if [ "$?" == "0" ];then |
8 | - echo "project service install success!" | 8 | + echo "allied-creation-gateway service install success!" |
9 | else | 9 | else |
10 | - echo "project service install fail!" | 10 | + echo "allied-creation-gateway service install fail!" |
11 | fi | 11 | fi |
12 | - kubectl -n <replace-your-k8s-namespace> get pods | grep -q project | 12 | + kubectl -n mmm-suplus-dev get pods | grep -q allied-creation-gateway |
13 | if [ "$?" == "0" ];then | 13 | if [ "$?" == "0" ];then |
14 | - echo "project deployment install success!" | 14 | + echo "allied-creation-gateway deployment install success!" |
15 | else | 15 | else |
16 | - echo "project deployment install fail!" | 16 | + echo "allied-creation-gateway deployment install fail!" |
17 | fi | 17 | fi |
18 | else | 18 | else |
19 | - kubectl delete -f /tmp/dev/project/project.yaml | ||
20 | - kubectl -n <replace-your-k8s-namespace> get svc | grep -q project | 19 | + kubectl delete -f /tmp/dev/allied-creation-gateway/allied-creation-gateway.yaml |
20 | + kubectl -n mmm-suplus-dev get svc | grep -q allied-creation-gateway | ||
21 | while [ "$?" == "0" ] | 21 | while [ "$?" == "0" ] |
22 | do | 22 | do |
23 | - kubectl -n <replace-your-k8s-namespace> get svc | grep -q project | 23 | + kubectl -n mmm-suplus-dev get svc | grep -q allied-creation-gateway |
24 | done | 24 | done |
25 | - kubectl -n <replace-your-k8s-namespace> get pods | grep -q project | 25 | + kubectl -n mmm-suplus-dev get pods | grep -q allied-creation-gateway |
26 | while [ "$?" == "0" ] | 26 | while [ "$?" == "0" ] |
27 | do | 27 | do |
28 | - kubectl -n <replace-your-k8s-namespace> get pods | grep -q project | 28 | + kubectl -n mmm-suplus-dev get pods | grep -q allied-creation-gateway |
29 | done | 29 | done |
30 | - kubectl create -f /tmp/dev/project/project.yaml --record | ||
31 | - kubectl -n <replace-your-k8s-namespace> get svc | grep -q project | 30 | + kubectl create -f /tmp/dev/allied-creation-gateway/allied-creation-gateway.yaml --record |
31 | + kubectl -n mmm-suplus-dev get svc | grep -q allied-creation-gateway | ||
32 | if [ "$?" == "0" ];then | 32 | if [ "$?" == "0" ];then |
33 | - echo "project service update success!" | 33 | + echo "allied-creation-gateway service update success!" |
34 | else | 34 | else |
35 | - echo "project service update fail!" | 35 | + echo "allied-creation-gateway service update fail!" |
36 | fi | 36 | fi |
37 | - kubectl -n <replace-your-k8s-namespace> get pods | grep -q project | 37 | + kubectl -n mmm-suplus-dev get pods | grep -q allied-creation-gateway |
38 | if [ "$?" == "0" ];then | 38 | if [ "$?" == "0" ];then |
39 | - echo "project deployment update success!" | 39 | + echo "allied-creation-gateway deployment update success!" |
40 | else | 40 | else |
41 | - echo "project deployment update fail!" | 41 | + echo "allied-creation-gateway deployment update fail!" |
42 | fi | 42 | fi |
43 | fi | 43 | fi |
-
请 注册 或 登录 后发表评论