configmap.yaml
1.28 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
apiVersion: v1
kind: ConfigMap
metadata:
name: product-service-config
namespace: ecommerce
labels:
app: product-service
data:
application.yml: |
server:
port: 8080
servlet:
context-path: /api/products
spring:
application:
name: product-service
data:
mongodb:
uri: mongodb://admin:${MONGO_PASSWORD}@mongodb-service:27017/ecommerce?authSource=admin
database: ecommerce
auto-index-creation: true
redis:
host: redis-service
port: 6379
password: ${REDIS_PASSWORD}
timeout: 2000
lettuce:
pool:
max-active: 10
max-idle: 5
min-idle: 2
max-wait: 1000
cache:
type: redis
redis:
time-to-live: 3600000
cache-null-values: false
logging:
level:
com.ecommerce.productservice: DEBUG
org.springframework.data.mongodb.core: WARN
management:
endpoints:
web:
exposure:
include: health,info,metrics,prometheus
endpoint:
health:
show-details: always
elasticsearch:
host: elasticsearch-service
port: 9200
feature:
flags:
cache-enabled: true
search-enabled: true