作者 Administrator

更新 sumicro-system.yaml

1 apiVersion: v1 1 apiVersion: v1
2 -kind: ConfigMap  
3 -metadata:  
4 - name: sumicro-system-config-prd  
5 -data:  
6 - config.yml: |  
7 - Name: sumicro-system-prd  
8 - Host: 0.0.0.0  
9 - Port: 8080  
10 -  
11 - Verbose: false  
12 - Migrate: true  
13 - Timeout: 30000  
14 - LogRequest: true # 记录详细请求日志  
15 -  
16 - Log:  
17 - #Mode: file  
18 - Encoding: plain  
19 - Level: debug # info  
20 - MaxSize: 1 # 2MB  
21 - TimeFormat: 2006-01-02 15:04:05  
22 - Rotation: size  
23 - MaxContentLength: 10240  
24 -  
25 - SystemAuth:  
26 - AccessSecret: su-platform  
27 - AccessExpire: 360000  
28 -  
29 - Redis:  
30 - Host: 192.168.0.243:6379  
31 - Type: node  
32 - Pass:  
33 - DB:  
34 - DataSource: host=114.55.200.59 user=postgres password=eagle1010 dbname=su_enterprise_platform port=31543 sslmode=disable TimeZone=Asia/Shanghai  
35 -  
36 ----  
37 -apiVersion: v1  
38 kind: Service 2 kind: Service
39 metadata: 3 metadata:
40 name: sumicro-system 4 name: sumicro-system
41 - namespace: mmm-suplus-test 5 + namespace: mmm-suplus-prd
42 labels: 6 labels:
43 k8s-app: sumicro-system 7 k8s-app: sumicro-system
44 spec: 8 spec:
@@ -56,7 +20,7 @@ apiVersion: extensions/v1beta1 @@ -56,7 +20,7 @@ apiVersion: extensions/v1beta1
56 kind: Deployment 20 kind: Deployment
57 metadata: 21 metadata:
58 name: sumicro-system 22 name: sumicro-system
59 - namespace: mmm-suplus-test 23 + namespace: mmm-suplus-prd
60 labels: 24 labels:
61 k8s-app: sumicro-system 25 k8s-app: sumicro-system
62 spec: 26 spec:
@@ -77,11 +41,11 @@ spec: @@ -77,11 +41,11 @@ spec:
77 - key: kubernetes.io/hostname 41 - key: kubernetes.io/hostname
78 operator: In 42 operator: In
79 values: 43 values:
80 - - cn-hangzhou.i-bp1djh1xn7taumbue1ze 44 + - cn-hangzhou.i-bp1djh1xn7taumbue1zd
81 45
82 containers: 46 containers:
83 - name: sumicro-system 47 - name: sumicro-system
84 - image: 192.168.0.243:5000/mmm/sumicro-system:dev 48 + image: 192.168.0.243:5000/mmm/sumicro-system:master
85 imagePullPolicy: Always 49 imagePullPolicy: Always
86 ports: 50 ports:
87 - containerPort: 8080 51 - containerPort: 8080