正在显示
1 个修改的文件
包含
43 行增加
和
64 行删除
| @@ -7,9 +7,9 @@ metadata: | @@ -7,9 +7,9 @@ metadata: | ||
| 7 | k8s-app: opp | 7 | k8s-app: opp |
| 8 | spec: | 8 | spec: |
| 9 | ports: | 9 | ports: |
| 10 | - - name: "http" | ||
| 11 | - port: 80 | ||
| 12 | - targetPort: 8080 | 10 | + - name: "http" |
| 11 | + port: 80 | ||
| 12 | + targetPort: 8080 | ||
| 13 | selector: | 13 | selector: |
| 14 | k8s-app: opp | 14 | k8s-app: opp |
| 15 | --- | 15 | --- |
| @@ -43,67 +43,46 @@ spec: | @@ -43,67 +43,46 @@ spec: | ||
| 43 | - cn-hangzhou.i-bp1euf5u1ph9kbhtndhb | 43 | - cn-hangzhou.i-bp1euf5u1ph9kbhtndhb |
| 44 | - cn-hangzhou.i-bp1hyp5oips9cdwxxgxy | 44 | - cn-hangzhou.i-bp1hyp5oips9cdwxxgxy |
| 45 | containers: | 45 | containers: |
| 46 | - - name: opp | ||
| 47 | - image: 192.168.0.243:5000/mmm/opp:dev | ||
| 48 | - imagePullPolicy: Always | ||
| 49 | - ports: | ||
| 50 | - - containerPort: 8080 | ||
| 51 | - volumeMounts: | ||
| 52 | - - mountPath: /opt/logs | ||
| 53 | - name: accesslogs | ||
| 54 | - - mountPath: /var/www/opp/file | ||
| 55 | - name: mmmjihuitest-pvc1 | ||
| 56 | - env: | ||
| 57 | - - name: ENTERPRISE_SERVICE_HOST | ||
| 58 | - valueFrom: | ||
| 59 | - configMapKeyRef: | ||
| 60 | - name: suplus-config | ||
| 61 | - key: service.enterprise | ||
| 62 | - - name: MYSQL_HOST | ||
| 63 | - valueFrom: | ||
| 64 | - configMapKeyRef: | ||
| 65 | - name: suplus-config | ||
| 66 | - key: mysql.host | ||
| 67 | - - name: MYSQL_PORT | ||
| 68 | - valueFrom: | ||
| 69 | - configMapKeyRef: | ||
| 70 | - name: suplus-config | ||
| 71 | - key: mysql.port | ||
| 72 | - - name: MYSQL_USER | ||
| 73 | - valueFrom: | ||
| 74 | - configMapKeyRef: | ||
| 75 | - name: suplus-config | ||
| 76 | - key: mysql.user | ||
| 77 | - - name: MYSQL_PASSWORD | ||
| 78 | - valueFrom: | ||
| 79 | - configMapKeyRef: | ||
| 80 | - name: suplus-config | ||
| 81 | - key: mysql.password | ||
| 82 | - - name: REDIS_HOST | ||
| 83 | - valueFrom: | ||
| 84 | - configMapKeyRef: | ||
| 85 | - name: suplus-config | ||
| 86 | - key: redis.ip | ||
| 87 | - - name: REDIS_PORT | ||
| 88 | - valueFrom: | ||
| 89 | - configMapKeyRef: | ||
| 90 | - name: suplus-config | ||
| 91 | - key: redis.port | ||
| 92 | - - name: MYSQL_DB_NAME | ||
| 93 | - value: "opportunity_dev" | ||
| 94 | - - name: LOG_LEVEL | ||
| 95 | - value: "debug" | ||
| 96 | - - name: RUN_MODE | ||
| 97 | - value: "test" | ||
| 98 | - - name: aliyun_logs_suplus | ||
| 99 | - value: "stdout" | ||
| 100 | - - name: aliyun_logs_access | ||
| 101 | - value: "/opt/logs/opp_app.log" | ||
| 102 | - - name: aliyun_file_access | ||
| 103 | - value: "/var/www/opp/file" | 46 | + - name: opp |
| 47 | + image: 192.168.0.243:5000/mmm/opp:dev | ||
| 48 | + imagePullPolicy: Always | ||
| 49 | + volumeMounts: | ||
| 50 | + - mountPath: /opt/logs | ||
| 51 | + name: accesslogs | ||
| 52 | + - mountPath: /var/www/opp/file | ||
| 53 | + name: mmmjihuitest-pvc1 | ||
| 54 | + ports: | ||
| 55 | + - containerPort: 8080 | ||
| 56 | + env: | ||
| 57 | + - name: MYSQL_HOST | ||
| 58 | + valueFrom: | ||
| 59 | + configMapKeyRef: | ||
| 60 | + name: suplus-config | ||
| 61 | + key: mysql.host | ||
| 62 | + - name: MYSQL_PORT | ||
| 63 | + valueFrom: | ||
| 64 | + configMapKeyRef: | ||
| 65 | + name: suplus-config | ||
| 66 | + key: mysql.port | ||
| 67 | + - name: MYSQL_USER | ||
| 68 | + valueFrom: | ||
| 69 | + configMapKeyRef: | ||
| 70 | + name: suplus-config | ||
| 71 | + key: mysql.user | ||
| 72 | + - name: MYSQL_PASSWORD | ||
| 73 | + valueFrom: | ||
| 74 | + configMapKeyRef: | ||
| 75 | + name: suplus-config | ||
| 76 | + key: mysql.password | ||
| 77 | + - name: MYSQL_DB_NAME | ||
| 78 | + value: "opportunity_dev" | ||
| 79 | + - name: aliyun_logs_suplusfile | ||
| 80 | + value: "stdout" | ||
| 81 | + - name: aliyun_logs_access | ||
| 82 | + value: " /opt/logs/app.log" | ||
| 104 | volumes: | 83 | volumes: |
| 105 | - - name: accesslogs | ||
| 106 | - emptyDir: {} | ||
| 107 | - - name: mmmjihuitest-pvc1 | 84 | + - name: accesslogs |
| 85 | + emptyDir: {} | ||
| 86 | + - name: mmmjihuitest-pvc1 | ||
| 108 | persistentVolumeClaim: | 87 | persistentVolumeClaim: |
| 109 | claimName: mmmjihuitest-pvc | 88 | claimName: mmmjihuitest-pvc |
-
请 注册 或 登录 后发表评论