正在显示
2 个修改的文件
包含
25 行增加
和
17 行删除
@@ -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-dev get pods | grep -q oppmg | 3 | kubectl -n mmm-suplus-dev get pods | grep -q oppmg |
4 | if [ "$?" == "1" ];then | 4 | if [ "$?" == "1" ];then |
5 | - kubectl create -f /tmp/dev/oppmgmg/oppmg.yaml --record | 5 | + kubectl create -f /tmp/dev/mmm-go-oppmg/oppmg.yaml --record |
6 | kubectl -n mmm-suplus-dev get svc | grep -q oppmg | 6 | kubectl -n mmm-suplus-dev get svc | grep -q oppmg |
7 | if [ "$?" == "0" ];then | 7 | if [ "$?" == "0" ];then |
8 | echo "oppmg service install success!" | 8 | echo "oppmg service install success!" |
@@ -16,7 +16,7 @@ if [ "$?" == "1" ];then | @@ -16,7 +16,7 @@ if [ "$?" == "1" ];then | ||
16 | echo "oppmg deployment install fail!" | 16 | echo "oppmg deployment install fail!" |
17 | fi | 17 | fi |
18 | else | 18 | else |
19 | - kubectl delete -f /tmp/dev/oppmg/oppmg.yaml | 19 | + kubectl delete -f /tmp/dev/mmm-go-oppmg/oppmg.yaml |
20 | kubectl -n mmm-suplus-dev get svc | grep -q oppmg | 20 | kubectl -n mmm-suplus-dev get svc | grep -q oppmg |
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-dev get pods | grep -q oppmg | 28 | kubectl -n mmm-suplus-dev get pods | grep -q oppmg |
29 | done | 29 | done |
30 | - kubectl create -f /tmp/dev/oppmg/oppmg.yaml --record | 30 | + kubectl create -f /tmp/dev/mmm-go-oppmg/oppmg.yaml --record |
31 | kubectl -n mmm-suplus-dev get svc | grep -q oppmg | 31 | kubectl -n mmm-suplus-dev get svc | grep -q oppmg |
32 | if [ "$?" == "0" ];then | 32 | if [ "$?" == "0" ];then |
33 | echo "oppmg service update success!" | 33 | echo "oppmg service update success!" |
@@ -46,17 +46,14 @@ spec: | @@ -46,17 +46,14 @@ spec: | ||
46 | - name: oppmg | 46 | - name: oppmg |
47 | image: 192.168.0.243:5000/mmm/oppmg:dev | 47 | image: 192.168.0.243:5000/mmm/oppmg:dev |
48 | imagePullPolicy: Always | 48 | imagePullPolicy: Always |
49 | - ports: | ||
50 | - - containerPort: 8080 | ||
51 | volumeMounts: | 49 | volumeMounts: |
52 | - - mountPath: /opt/logs | 50 | + - mountPath: /opt/logs |
53 | name: accesslogs | 51 | name: accesslogs |
52 | + - mountPath: /var/www/oppmg/file | ||
53 | + name: mmmjihuitest-pvc1 | ||
54 | + ports: | ||
55 | + - containerPort: 8080 | ||
54 | env: | 56 | env: |
55 | - - name: ENTERPRISE_SERVICE_HOST | ||
56 | - valueFrom: | ||
57 | - configMapKeyRef: | ||
58 | - name: suplus-config | ||
59 | - key: service.enterprise | ||
60 | - name: MYSQL_HOST | 57 | - name: MYSQL_HOST |
61 | valueFrom: | 58 | valueFrom: |
62 | configMapKeyRef: | 59 | configMapKeyRef: |
@@ -67,6 +64,16 @@ spec: | @@ -67,6 +64,16 @@ spec: | ||
67 | configMapKeyRef: | 64 | configMapKeyRef: |
68 | name: suplus-config | 65 | name: suplus-config |
69 | key: mysql.port | 66 | key: mysql.port |
67 | + - name: REDIS_HOST | ||
68 | + valueFrom: | ||
69 | + configMapKeyRef: | ||
70 | + name: suplus-config | ||
71 | + key: redis.ip | ||
72 | + - name: REDIS_PORT | ||
73 | + valueFrom: | ||
74 | + configMapKeyRef: | ||
75 | + name: suplus-config | ||
76 | + key: redis.port | ||
70 | - name: MYSQL_USER | 77 | - name: MYSQL_USER |
71 | valueFrom: | 78 | valueFrom: |
72 | configMapKeyRef: | 79 | configMapKeyRef: |
@@ -79,16 +86,17 @@ spec: | @@ -79,16 +86,17 @@ spec: | ||
79 | key: mysql.password | 86 | key: mysql.password |
80 | - name: MYSQL_DB_NAME | 87 | - name: MYSQL_DB_NAME |
81 | value: "opportunity_dev" | 88 | value: "opportunity_dev" |
82 | - - name: LOG_LEVEL | ||
83 | - value: "debug" | ||
84 | - name: RUN_MODE | 89 | - name: RUN_MODE |
85 | value: "test" | 90 | value: "test" |
86 | - - name: aliyun_logs_suplus | 91 | + - name: LOG_LEVEL |
92 | + value: "debug" | ||
93 | + - name: aliyun_logs_suplusfile | ||
87 | value: "stdout" | 94 | value: "stdout" |
88 | - name: aliyun_logs_access | 95 | - name: aliyun_logs_access |
89 | - value: "/opt/logs/oppmg.log" | ||
90 | - - name: aliyun_logs_access | ||
91 | - value: "/var/www/opp/file" | 96 | + value: " /opt/logs/app.log" |
92 | volumes: | 97 | volumes: |
93 | - name: accesslogs | 98 | - name: accesslogs |
94 | emptyDir: {} | 99 | emptyDir: {} |
100 | + - name: mmmjihuitest-pvc1 | ||
101 | + persistentVolumeClaim: | ||
102 | + claimName: mmmjihuitest-pvc |
-
请 注册 或 登录 后发表评论