作者 Administrator

更新 allied-creation-cooperation.yaml

@@ -2,7 +2,7 @@ apiVersion: v1 @@ -2,7 +2,7 @@ apiVersion: v1
2 kind: Service 2 kind: Service
3 metadata: 3 metadata:
4 name: allied-creation-cooperation 4 name: allied-creation-cooperation
5 - namespace: <replace-your-k8s-namespace> 5 + namespace: mmm-suplus-prd
6 labels: 6 labels:
7 k8s-app: allied-creation-cooperation 7 k8s-app: allied-creation-cooperation
8 spec: 8 spec:
@@ -10,6 +10,9 @@ spec: @@ -10,6 +10,9 @@ spec:
10 - name: "http" 10 - name: "http"
11 port: 80 11 port: 80
12 targetPort: 8082 12 targetPort: 8082
  13 + - name: "https"
  14 + port: 443
  15 + targetPort: 443
13 selector: 16 selector:
14 k8s-app: allied-creation-cooperation 17 k8s-app: allied-creation-cooperation
15 --- 18 ---
@@ -17,7 +20,7 @@ apiVersion: extensions/v1beta1 @@ -17,7 +20,7 @@ apiVersion: extensions/v1beta1
17 kind: Deployment 20 kind: Deployment
18 metadata: 21 metadata:
19 name: allied-creation-cooperation 22 name: allied-creation-cooperation
20 - namespace: <replace-your-k8s-namespace> 23 + namespace: mmm-suplus-prd
21 labels: 24 labels:
22 k8s-app: allied-creation-cooperation 25 k8s-app: allied-creation-cooperation
23 spec: 26 spec:
@@ -44,20 +47,64 @@ spec: @@ -44,20 +47,64 @@ spec:
44 - cn-hangzhou.i-bp1hyp5oips9cdwxxgxy 47 - cn-hangzhou.i-bp1hyp5oips9cdwxxgxy
45 containers: 48 containers:
46 - name: allied-creation-cooperation 49 - name: allied-creation-cooperation
47 - image: 192.168.0.243:5000/mmm/allied-creation-cooperation:dev 50 + image: 192.168.0.243:5000/mmm/allied-creation-cooperation:master
48 imagePullPolicy: Always 51 imagePullPolicy: Always
49 ports: 52 ports:
50 - containerPort: 8082 53 - containerPort: 8082
  54 + - containerPort: 443
51 volumeMounts: 55 volumeMounts:
52 - mountPath: /opt/logs 56 - mountPath: /opt/logs
53 name: accesslogs 57 name: accesslogs
54 env: 58 env:
55 - name: LOG_LEVEL 59 - name: LOG_LEVEL
56 value: "debug" 60 value: "debug"
  61 + - name: LOG_FRAMEWORK
  62 + value: "beego"
  63 + - name: LOG_TYPE
  64 + value: "file"
57 - name: ERROR_BASE_CODE 65 - name: ERROR_BASE_CODE
58 value: "1" 66 value: "1"
59 - name: ERROR_BASE_CODE_MULTIPLE 67 - name: ERROR_BASE_CODE_MULTIPLE
60 value: "1000" 68 value: "1000"
  69 + - name: ENABLE_KAFKA_LOG
  70 + value: "false"
  71 + - name: USER_MODULE_HOST
  72 + value: "https://allied-creation-user-prd.fjmaimaimai.com"
  73 + - name: REDIS_HOST
  74 + valueFrom:
  75 + configMapKeyRef:
  76 + name: suplus-config
  77 + key: redis.ip
  78 + - name: REDIS_PORT
  79 + valueFrom:
  80 + configMapKeyRef:
  81 + name: suplus-config
  82 + key: redis.port
  83 + - name: POSTGRESQL_DB_NAME
  84 + valueFrom:
  85 + configMapKeyRef:
  86 + name: suplus-config
  87 + key: postgresqlalliedcreationcooperation.dbname
  88 + - name: POSTGRESQL_USER
  89 + valueFrom:
  90 + configMapKeyRef:
  91 + name: suplus-config
  92 + key: postgresql.user
  93 + - name: POSTGRESQL_PASSWORD
  94 + valueFrom:
  95 + configMapKeyRef:
  96 + name: suplus-config
  97 + key: postgresql.password
  98 + - name: POSTGRESQL_HOST
  99 + valueFrom:
  100 + configMapKeyRef:
  101 + name: suplus-config
  102 + key: postgresql.host
  103 + - name: POSTGRESQL_PORT
  104 + valueFrom:
  105 + configMapKeyRef:
  106 + name: suplus-config
  107 + key: postgresql.port
61 volumes: 108 volumes:
62 - name: accesslogs 109 - name: accesslogs
63 emptyDir: {} 110 emptyDir: {}