| # communicate-center-poa.yaml |
| |
| --- |
| apiVersion: v1 |
| kind: ConfigMap |
| metadata: |
| namespace: communicate-center-test |
| name: communicate-center-poa-env |
| data: |
| SERVER_PORT: "8080" |
| SSL_ENABLED: "false" |
| #SSL_KEYSTORE_FILE: file:/certs/server/server.keystore |
| #SSL_KEYSTORE_PASSWORD: "" |
| #SSL_TRUSTSTORE_FILE: file:/certs/server/server.truststore |
| #SSL_TRUSTSTORE_PASSWORD: "" |
| |
| SERVER_MAXHTTPHEADERSIZE: "10240" |
| |
| |
| USER_DATA_SERVICE_SERVER_URL: http://user-data-service-goa-svc.user-data-service-test.svc.cluster.local:8080 |
| USER_DATA_SERVICE_CLIENT_AUTH_ENABLED: "false" |
| #USER_DATA_SERVICE_CLIENT_AUTH_KEY_PASSWORD: "" |
| #USER_DATA_SERVICE_CLIENT_AUTH_KEYSTORE_FILE: file:/certs/client/client.keystore |
| #USER_DATA_SERVICE_CLIENT_AUTH_KEYSTORE_PASSWORD: "" |
| #USER_DATA_SERVICE_CLIENT_AUTH_TRUSTSTORE_FILE: file:/certs/client/client.truststore |
| #USER_DATA_SERVICE_CLIENT_AUTH_TRUSTSTORE_PASSWORD: "" |
| |
| # 若须对接邮件服务,须提供 SMTP 帐号 |
| TPAS_MAIL_API_URL: http://agent-service-svc.thirdparty-agent-service-test.svc.cluster.local:8080/api/v1/tpas/mail/console |
| # 若须对接sms 接口,须进行二开定制 |
| TPAS_SMS_API_URL: http://agent-service-svc.thirdparty-agent-service-test.svc.cluster.local:8080/api/v1/tpas/sms/console |
| |
| TPAS_CLIENT_AUTH_ENABLED: "false" |
| #TPAS_CLIENT_AUTH_KEY_PASSWORD: "" |
| #TPAS_CLIENT_AUTH_KEYSTORE_FILE: file:/certs/client/client.keystore |
| #TPAS_CLIENT_AUTH_KEYSTORE_PASSWORD: "" |
| #TPAS_CLIENT_AUTH_TRUSTSTORE_FILE: file:/certs/client/client.truststore |
| #TPAS_CLIENT_AUTH_TRUSTSTORE_PASSWORD: "" |
| |
| |
| --- |
| apiVersion: v1 |
| kind: Service |
| metadata: |
| namespace: communicate-center-test |
| name: communicate-center-poa-svc |
| labels: |
| app: communicate-center-poa |
| needMonitor: 'true' |
| spec: |
| ports: |
| - port: 8080 |
| targetPort: http |
| protocol: TCP |
| name: http |
| - port: 6060 |
| targetPort: http-metrics |
| protocol: TCP |
| name: http-metrics |
| selector: |
| app: communicate-center-poa |
| |
| --- |
| apiVersion: apps/v1 |
| kind: Deployment |
| metadata: |
| namespace: communicate-center-test |
| name: communicate-center-poa |
| spec: |
| selector: |
| matchLabels: |
| app: communicate-center-poa |
| replicas: 1 |
| template: |
| metadata: |
| labels: |
| app: communicate-center-poa |
| spec: |
| containers: |
| - name: communicate-center-poa |
| # 若使用了学校搭设的私有仓库,请修改 |
| image: harbor.supwisdom.com/communicate-center/communicate-center-poa:1.0.0-SNAPSHOT |
| imagePullPolicy: Always |
| ports: |
| - containerPort: 8080 |
| name: http |
| - containerPort: 6060 |
| name: http-metrics |
| envFrom: |
| - configMapRef: |
| name: jvm-env |
| - secretRef: |
| name: datasource-env-secret |
| - configMapRef: |
| name: communicate-center-poa-env |
| resources: |
| requests: |
| memory: "512Mi" |
| limits: |
| memory: "512Mi" |
| readinessProbe: |
| httpGet: |
| path: /actuator/health |
| port: 8080 |
| initialDelaySeconds: 20 |
| periodSeconds: 5 |
| timeoutSeconds: 5 |
| successThreshold: 1 |
| failureThreshold: 10 |
| imagePullSecrets: |
| - name: harbor-registry |