刘洪青 | 4720585 | 2020-08-14 13:39:30 +0800 | [diff] [blame] | 1 | # thirdparty-agent-service.yaml |
| 2 | |
| 3 | --- |
| 4 | apiVersion: v1 |
| 5 | kind: ConfigMap |
| 6 | metadata: |
| 7 | namespace: thirdparty-agent-service |
| 8 | name: agent-service-env |
| 9 | data: |
| 10 | SERVER_PORT: "8080" |
| 11 | SSL_ENABLED: "false" |
| 12 | #SSL_KEYSTORE_FILE: file:/certs/server/server.keystore |
| 13 | #SSL_TRUSTSTORE_FILE: file:/certs/server/server.truststore |
| 14 | |
| 15 | SERVER_MAXHTTPHEADERSIZE: "10240" |
| 16 | |
刘洪青 | 9c2687b | 2020-09-10 15:53:39 +0800 | [diff] [blame] | 17 | SERVER_TOMCAT_ACCEPT_COUNT: "5000" |
| 18 | SERVER_TOMCAT_MAX_CONNECTIONS: "10000" |
| 19 | SERVER_TOMCAT_MAX_THREADS: "800" |
| 20 | SERVER_TOMCAT_MIN_SPARE_THREADS: "100" |
| 21 | |
| 22 | |
| 23 | SPRING_DATASOURCE_DRUID_INITIAL_SIZE: "10" |
| 24 | SPRING_DATASOURCE_DRUID_MAX_ACTIVE: "20" |
| 25 | SPRING_DATASOURCE_DRUID_MIN_IDLE: "10" |
| 26 | |
刘洪青 | 9052f07 | 2020-10-15 20:57:40 +0800 | [diff] [blame] | 27 | LOGGING_LEVEL_COM_SUPWISDOM_INSTITUTE_TPAS: INFO |
刘洪青 | 4720585 | 2020-08-14 13:39:30 +0800 | [diff] [blame] | 28 | |
| 29 | ## file-db |
| 30 | FILE_DB_AUTOCONFIGURE_ENABLED: "false" |
| 31 | |
| 32 | ## file-minio |
| 33 | FILE_MINIO_AUTOCONFIGURE_ENABLED: "true" |
刘洪青 | c0170fa | 2020-09-20 16:25:25 +0800 | [diff] [blame] | 34 | FILE_MINIO_ENDPOINT: http://minio-svc.authx-service.svc.cluster.local:9000 |
刘洪青 | 4720585 | 2020-08-14 13:39:30 +0800 | [diff] [blame] | 35 | # FILE_MINIO_ACCESSKEY: "" |
| 36 | # FILE_MINIO_SECRETKEY: "" |
| 37 | |
| 38 | ## mail-console |
| 39 | MAIL_CONSOLE_AUTOCONFIGURE_ENABLED: "true" |
| 40 | |
| 41 | # 若须对接邮件服务,须提供 SMTP 帐号 |
| 42 | ## mail-smtp |
| 43 | MAIL_SMTP_AUTOCONFIGURE_ENABLED: "false" |
| 44 | MAIL_SMTP_HOST: smtp.mxhichina.com |
| 45 | MAIL_SMTP_PORT: "25" |
| 46 | MAIL_SMTP_SECURE_MODE: NONE |
| 47 | MAIL_SMTP_USERNAME: security.institute@supwisdom.com |
| 48 | MAIL_SMTP_PASSWORD: Security2019 |
| 49 | MAIL_SMTP_FROM: security.institute@supwisdom.com |
| 50 | MAIL_SMTP_FROM_PERSONAL: 智慧校园 |
| 51 | |
| 52 | ## sms-console |
| 53 | SMS_CONSOLE_AUTOCONFIGURE_ENABLED: "true" |
| 54 | |
| 55 | # 若须使用阿里云短信服务,须提供帐号 |
| 56 | ## sms-aliyun |
| 57 | SMS_ALIYUN_AUTOCONFIGURE_ENABLED: "false" |
| 58 | SMS_ALIYUN_REGION_ID: cn-hangzhou |
| 59 | SMS_ALIYUN_ACCESS_KEY_ID: "" |
| 60 | SMS_ALIYUN_ACCESS_SECRET: "" |
| 61 | |
| 62 | # 若须对接sms 接口,须进行二开定制 |
| 63 | |
| 64 | |
刘洪青 | 25e673c | 2021-09-18 11:23:11 +0800 | [diff] [blame] | 65 | # face |
| 66 | # aiface 新开普人脸 |
| 67 | FACE_AIFACE_AUTOCONFIGURE_ENABLED: "false" |
| 68 | FACE_AIFACE_URL: "" |
| 69 | FACE_AIFACE_APPKEY: "" |
| 70 | FACE_AIFACE_APPSECRET: "" |
| 71 | FACE_AIFACE_SECRETKEY: "" |
| 72 | FACE_AIFACE_TERM_CODE: "" |
| 73 | |
| 74 | # aipface 百度人脸 |
| 75 | FACE_AIPFACE_AUTOCONFIGURE_ENABLED: "true" |
| 76 | FACE_AIPFACE_APPID: "24825582" |
| 77 | FACE_AIPFACE_APIKEY: "1KK9A5hIB9HNbHWQGVrw26Ww" |
| 78 | FACE_AIPFACE_SECRETKEY: "AsANn1AoxhHDGsscQ7QUIKmWnCW0vggH" |
| 79 | FACE_AIPFACE_GROUPIDLIST: "TEST_1" |
| 80 | |
| 81 | |
刘洪青 | 4720585 | 2020-08-14 13:39:30 +0800 | [diff] [blame] | 82 | --- |
| 83 | apiVersion: v1 |
| 84 | kind: Secret |
| 85 | metadata: |
| 86 | namespace: thirdparty-agent-service |
| 87 | name: agent-service-env-secret |
| 88 | type: Opaque |
| 89 | data: |
| 90 | #SSL_KEYSTORE_PASSWORD: "" |
| 91 | #SSL_TRUSTSTORE_PASSWORD: "" |
| 92 | |
| 93 | ## file-minio |
| 94 | FILE_MINIO_ACCESSKEY: MXk4TkA4UkBhXzJ1 |
| 95 | # 1y8N@8R@a_2u |
| 96 | FILE_MINIO_SECRETKEY: OHB4bEllOSNsTjdR |
| 97 | # 8pxlIe9#lN7Q |
| 98 | |
| 99 | |
| 100 | --- |
| 101 | apiVersion: v1 |
| 102 | kind: Service |
| 103 | metadata: |
| 104 | namespace: thirdparty-agent-service |
| 105 | name: agent-service-svc |
| 106 | labels: |
| 107 | app: agent-service |
| 108 | needMonitor: 'true' |
| 109 | spec: |
| 110 | ports: |
| 111 | - port: 8080 |
| 112 | targetPort: http |
| 113 | protocol: TCP |
| 114 | name: http |
| 115 | - port: 6060 |
| 116 | targetPort: http-metrics |
| 117 | protocol: TCP |
| 118 | name: http-metrics |
| 119 | selector: |
| 120 | app: agent-service |
| 121 | |
| 122 | --- |
| 123 | apiVersion: apps/v1 |
| 124 | kind: Deployment |
| 125 | metadata: |
| 126 | namespace: thirdparty-agent-service |
| 127 | name: agent-service |
| 128 | spec: |
| 129 | selector: |
| 130 | matchLabels: |
| 131 | app: agent-service |
| 132 | replicas: 1 |
| 133 | template: |
| 134 | metadata: |
| 135 | labels: |
| 136 | app: agent-service |
| 137 | spec: |
| 138 | containers: |
| 139 | - name: agent-service |
| 140 | # 若使用了学校搭设的私有仓库,请修改 |
刘洪青 | c678285 | 2021-12-27 13:31:09 +0800 | [diff] [blame] | 141 | image: harbor.supwisdom.com/thirdparty-agent-service/agent-service:1.3.1-RELEASE |
刘洪青 | 4720585 | 2020-08-14 13:39:30 +0800 | [diff] [blame] | 142 | imagePullPolicy: Always |
| 143 | ports: |
| 144 | - containerPort: 8080 |
| 145 | name: http |
| 146 | - containerPort: 6060 |
| 147 | name: http-metrics |
| 148 | envFrom: |
| 149 | - configMapRef: |
| 150 | name: jvm-env |
| 151 | - secretRef: |
| 152 | name: datasource-env-secret |
| 153 | - secretRef: |
| 154 | name: agent-service-env-secret |
| 155 | - configMapRef: |
| 156 | name: agent-service-env |
| 157 | resources: |
| 158 | requests: |
| 159 | memory: "512Mi" |
| 160 | limits: |
| 161 | memory: "512Mi" |
| 162 | readinessProbe: |
| 163 | httpGet: |
| 164 | path: /actuator/health |
| 165 | port: 8080 |
| 166 | initialDelaySeconds: 20 |
| 167 | periodSeconds: 5 |
| 168 | timeoutSeconds: 5 |
| 169 | successThreshold: 1 |
| 170 | failureThreshold: 10 |
| 171 | imagePullSecrets: |
| 172 | - name: harbor-registry |
| 173 | |