作者 Administrator

更新 opp.yaml

@@ -46,14 +46,19 @@ spec: @@ -46,14 +46,19 @@ spec:
46 - name: opp 46 - name: opp
47 image: 192.168.0.243:5000/mmm/opp:dev 47 image: 192.168.0.243:5000/mmm/opp:dev
48 imagePullPolicy: Always 48 imagePullPolicy: Always
  49 + ports:
  50 + - containerPort: 8080
49 volumeMounts: 51 volumeMounts:
50 - mountPath: /opt/logs 52 - mountPath: /opt/logs
51 name: accesslogs 53 name: accesslogs
52 - mountPath: /var/www/opp/file 54 - mountPath: /var/www/opp/file
53 name: mmmjihuitest-pvc1 55 name: mmmjihuitest-pvc1
54 - ports:  
55 - - containerPort: 8080  
56 env: 56 env:
  57 + - name: ENTERPRISE_SERVICE_HOST
  58 + valueFrom:
  59 + configMapKeyRef:
  60 + name: suplus-config
  61 + key: service.enterprise
57 - name: MYSQL_HOST 62 - name: MYSQL_HOST
58 valueFrom: 63 valueFrom:
59 configMapKeyRef: 64 configMapKeyRef:
@@ -74,12 +79,28 @@ spec: @@ -74,12 +79,28 @@ spec:
74 configMapKeyRef: 79 configMapKeyRef:
75 name: suplus-config 80 name: suplus-config
76 key: mysql.password 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
77 - name: MYSQL_DB_NAME 92 - name: MYSQL_DB_NAME
78 value: "opportunity_dev" 93 value: "opportunity_dev"
79 - - name: aliyun_logs_suplusfile 94 + - name: LOG_LEVEL
  95 + value: "debug"
  96 + - name: RUN_MODE
  97 + value: "test"
  98 + - name: aliyun_logs_suplus
80 value: "stdout" 99 value: "stdout"
81 - name: aliyun_logs_access 100 - name: aliyun_logs_access
82 - value: " /opt/logs/app.log" 101 + value: "/opt/logs/opp_app.log"
  102 + - name: aliyun_file_access
  103 + value: "/var/www/opp/file"
83 volumes: 104 volumes:
84 - name: accesslogs 105 - name: accesslogs
85 emptyDir: {} 106 emptyDir: {}