blob: f20140a06c5f541c4f4b1f120882461b9f7ea188 [file] [log] [blame]
刘洪青fbf49232020-09-29 17:48:43 +08001# communicate-center-poa.yaml
2
3---
4apiVersion: v1
5kind: ConfigMap
6metadata:
7 namespace: communicate-center
8 name: communicate-center-poa-env
9data:
10 SERVER_PORT: "8080"
11 SSL_ENABLED: "false"
12 #SSL_KEYSTORE_FILE: file:/certs/server/server.keystore
13 #SSL_KEYSTORE_PASSWORD: ""
14 #SSL_TRUSTSTORE_FILE: file:/certs/server/server.truststore
15 #SSL_TRUSTSTORE_PASSWORD: ""
16
17 SERVER_MAXHTTPHEADERSIZE: "10240"
18
19
20 USER_DATA_SERVICE_SERVER_URL: http://user-data-service-goa-svc.user-data-service.svc.cluster.local:8080
21 USER_DATA_SERVICE_CLIENT_AUTH_ENABLED: "false"
22 #USER_DATA_SERVICE_CLIENT_AUTH_KEY_PASSWORD: ""
23 #USER_DATA_SERVICE_CLIENT_AUTH_KEYSTORE_FILE: file:/certs/client/client.keystore
24 #USER_DATA_SERVICE_CLIENT_AUTH_KEYSTORE_PASSWORD: ""
25 #USER_DATA_SERVICE_CLIENT_AUTH_TRUSTSTORE_FILE: file:/certs/client/client.truststore
26 #USER_DATA_SERVICE_CLIENT_AUTH_TRUSTSTORE_PASSWORD: ""
27
28 # 若须对接邮件服务,须提供 SMTP 帐号
29 TPAS_MAIL_API_URL: http://agent-service-svc.thirdparty-agent-service.svc.cluster.local:8080/api/v1/tpas/mail/console
30 # 若须对接sms 接口,须进行二开定制
31 TPAS_SMS_API_URL: http://agent-service-svc.thirdparty-agent-service.svc.cluster.local:8080/api/v1/tpas/sms/console
32
33 TPAS_CLIENT_AUTH_ENABLED: "false"
34 #TPAS_CLIENT_AUTH_KEY_PASSWORD: ""
35 #TPAS_CLIENT_AUTH_KEYSTORE_FILE: file:/certs/client/client.keystore
36 #TPAS_CLIENT_AUTH_KEYSTORE_PASSWORD: ""
37 #TPAS_CLIENT_AUTH_TRUSTSTORE_FILE: file:/certs/client/client.truststore
38 #TPAS_CLIENT_AUTH_TRUSTSTORE_PASSWORD: ""
39
40
41---
42apiVersion: v1
43kind: Service
44metadata:
45 namespace: communicate-center
46 name: communicate-center-poa-svc
47 labels:
48 app: communicate-center-poa
49 needMonitor: 'true'
50spec:
51 ports:
52 - port: 8080
53 targetPort: http
54 protocol: TCP
55 name: http
56 - port: 6060
57 targetPort: http-metrics
58 protocol: TCP
59 name: http-metrics
60 selector:
61 app: communicate-center-poa
62
63---
64apiVersion: apps/v1
65kind: Deployment
66metadata:
67 namespace: communicate-center
68 name: communicate-center-poa
69spec:
70 selector:
71 matchLabels:
72 app: communicate-center-poa
73 replicas: 1
74 template:
75 metadata:
76 labels:
77 app: communicate-center-poa
78 spec:
79 containers:
80 - name: communicate-center-poa
81 # 若使用了学校搭设的私有仓库,请修改
82 image: harbor.supwisdom.com/communicate-center/communicate-center-poa:1.0.0-SNAPSHOT
83 imagePullPolicy: Always
84 ports:
85 - containerPort: 8080
86 name: http
87 - containerPort: 6060
88 name: http-metrics
89 envFrom:
90 - configMapRef:
91 name: jvm-env
92 - secretRef:
93 name: datasource-env-secret
94 - configMapRef:
95 name: communicate-center-poa-env
96 resources:
97 requests:
98 memory: "512Mi"
99 limits:
100 memory: "512Mi"
101 readinessProbe:
102 httpGet:
103 path: /actuator/health
104 port: 8080
105 initialDelaySeconds: 20
106 periodSeconds: 5
107 timeoutSeconds: 5
108 successThreshold: 1
109 failureThreshold: 10
110 imagePullSecrets:
111 - name: harbor-registry