configmap.yaml
1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
apiVersion: v1
kind: ConfigMap
metadata:
name: user-service-config
namespace: ecommerce
labels:
app: user-service
data:
application.yml: |
server:
port: 8080
servlet:
context-path: /api/users
spring:
application:
name: user-service
datasource:
url: jdbc:postgresql://postgresql-service:5432/ecommerce
username: admin
driver-class-name: org.postgresql.Driver
hikari:
maximum-pool-size: 10
minimum-idle: 2
connection-timeout: 30000
idle-timeout: 600000
max-lifetime: 1800000
jpa:
hibernate:
ddl-auto: validate
naming:
physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
show-sql: false
properties:
hibernate:
dialect: org.hibernate.dialect.PostgreSQLDialect
format_sql: true
jdbc:
batch_size: 20
order_inserts: true
order_updates: true
redis:
host: redis-service
port: 6379
timeout: 2000
lettuce:
pool:
max-active: 10
max-idle: 5
min-idle: 2
max-wait: 1000
jwt:
secret: ${JWT_SECRET}
expiration: 86400000
refresh-expiration: 2592000000
logging:
level:
com.ecommerce.userservice: DEBUG
org.hibernate.SQL: WARN
org.hibernate.type.descriptor.sql.BasicBinder: WARN
management:
endpoints:
web:
exposure:
include: health,info,metrics,prometheus
endpoint:
health:
show-details: always
probes:
enabled: true
eureka:
client:
enabled: false