Cpte-Boot/k8s/configmap.yaml

156 lines
4.1 KiB
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: wms-common-config
namespace: wms-system
labels:
app: cpte-wms
data:
APPLICATION_YML: |
spring:
application:
name: cpte-wms
profiles:
active: k8s
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
servlet:
multipart:
max-file-size: 10MB
max-request-size: 10MB
data:
redis:
host: ${REDIS_HOST:redis-master.wms-system.svc.cluster.local}
port: ${REDIS_PORT:6379}
password: ${REDIS_PASSWORD:}
database: 0
timeout: 5000ms
lettuce:
pool:
max-active: 8
max-idle: 8
min-idle: 0
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${MYSQL_HOST:mysql-primary.wms-system.svc.cluster.local}:${MYSQL_PORT:3306}/cpte-wms?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true
username: ${MYSQL_USERNAME:wms_user}
password: ${MYSQL_PASSWORD:}
druid:
initial-size: 5
min-idle: 5
max-active: 20
max-wait: 60000
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 300000
validation-query: SELECT 1
test-while-idle: true
test-on-borrow: false
test-on-return: false
pool-prepared-statements: true
max-pool-prepared-statement-per-connection-size: 20
filters: stat,slf4j
stat:
slow-sql-millis: 5000
merge-sql: true
mybatis-plus:
mapper-locations: classpath*:org/jeecg/**/xml/*Mapper.xml,classpath*:org/cpte/**/xml/*Mapper.xml
global-config:
banner: false
db-config:
id-type: ASSIGN_ID
table-underline: true
configuration:
call-setters-on-nulls: true
jeecg:
signatureSecret: dd05f1c54d63749eda95f9fa6d49v442a
uploadType: minio
domainUrl:
pc: http://wms-gateway.wms-system.svc.cluster.local
app: http://wms-gateway.wms-system.svc.cluster.local
path:
upload: /data/upload
webapp: /data/webapp
minio:
minio_url: ${MINIO_ENDPOINT:http://minio.wms-system.svc.cluster.local:9000}
minio_name: ${MINIO_ACCESS_KEY:minioadmin}
minio_pass: ${MINIO_SECRET_KEY:minioadmin123}
bucketName: wms-files
minidao:
base-package: org.jeecg.modules.jmreport.*,org.jeecg.modules.drag.*
knife4j:
enable: true
production: false
logging:
level:
root: INFO
org.jeecg: INFO
org.cpte: INFO
com.alibaba.druid: DEBUG
pattern:
console: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n"
file: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n"
file:
name: /app/logs/application.log
max-size: 100MB
max-history: 30
FEIGN_CONFIG: |
feign:
client:
config:
default:
connectTimeout: 5000
readTimeout: 10000
loggerLevel: BASIC
compression:
request:
enabled: true
response:
enabled: true
okhttp:
enabled: true
spring:
cloud:
loadbalancer:
retry:
enabled: true
cache:
ttl: 30000
ACTUATOR_CONFIG: |
management:
endpoints:
web:
exposure:
include: health,info,metrics,prometheus
endpoint:
health:
show-details: always
probes:
enabled: true
metrics:
export:
prometheus:
enabled: true
health:
livenessState:
enabled: true
readinessState:
enabled: true
MINIO_ENDPOINT: "http://minio.wms-system.svc.cluster.local:9000"
WMS_VERSION: "3.8.3"
ENVIRONMENT: "kubernetes"