Skip to content

Commit 1f86b11

Browse files
committed
fix: Add more db config in service private configuration
Relates to edgexfoundry#4847. Add more db config in service private config in order to use env variable overwrite to support Postgres in some services. Signed-off-by: Lindsey Cheng <[email protected]>
1 parent 7f1d492 commit 1f86b11

File tree

4 files changed

+43
-2
lines changed

4 files changed

+43
-2
lines changed

cmd/core-data/res/configuration.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ Writable:
88
ReadingsPersisted: false
99
# Tags: # Contains the service level tags to be attached to all the service's metrics
1010
## Gateway="my-iot-gateway" # Tag must be added here or via Consul Env Override can only change existing value, not added new ones.
11+
InsecureSecrets:
12+
DB:
13+
SecretName: "redisdb"
14+
SecretData:
15+
username: ""
16+
password: ""
17+
1118
Service:
1219
Port: 59880
1320
Host: "localhost"
@@ -19,6 +26,10 @@ MessageBus:
1926

2027
Database:
2128
Name: "coredata"
29+
Host: "localhost"
30+
Port: 6379
31+
Timeout: "5s"
32+
Type: "redisdb"
2233

2334
Retention:
2435
Enabled: false

cmd/core-metadata/res/configuration.yaml

+11-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ Writable:
55
StrictDeviceProfileDeletes: false
66
UoM:
77
Validation: false
8+
InsecureSecrets:
9+
DB:
10+
SecretName: "redisdb"
11+
SecretData:
12+
username: ""
13+
password: ""
14+
815
Service:
916
Host: localhost
1017
Port: 59881
@@ -18,4 +25,7 @@ MessageBus:
1825

1926
Database:
2027
Name: metadata
21-
28+
Host: "localhost"
29+
Port: 6379
30+
Timeout: "5s"
31+
Type: "redisdb"

cmd/support-notifications/res/configuration.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ Writable:
88
SecretData:
99
1010
password: ''
11+
DB:
12+
SecretName: "redisdb"
13+
SecretData:
14+
username: ""
15+
password: ""
16+
1117
Service:
1218
Host: localhost
1319
Port: 59860
@@ -30,6 +36,10 @@ MessageBus:
3036

3137
Database:
3238
Name: notifications
39+
Host: "localhost"
40+
Port: 6379
41+
Timeout: "5s"
42+
Type: "redisdb"
3343

3444
Retention:
3545
Enabled: false

cmd/support-scheduler/res/configuration.yaml

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
ScheduleIntervalTime: 500
22
Writable:
33
LogLevel: INFO
4+
InsecureSecrets:
5+
DB:
6+
SecretName: "redisdb"
7+
SecretData:
8+
username: ""
9+
password: ""
10+
411
Service:
512
Host: localhost
613
Port: 59861
@@ -28,4 +35,7 @@ MessageBus:
2835

2936
Database:
3037
Name: scheduler
31-
38+
Host: "localhost"
39+
Port: 6379
40+
Timeout: "5s"
41+
Type: "redisdb"

0 commit comments

Comments
 (0)