forked from corda/corda-runtime-os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstate-manager.yaml
83 lines (82 loc) · 2.44 KB
/
state-manager.yaml
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
73
74
75
76
77
78
79
80
81
82
83
# Override file suitable for local deployment of the Corda Helm chart against version 0.1.0 of the corda-dev prereqs
# Helm chart and a state-manager deployed via bitnami postgres helm chart with the overrides from
# `state-manager-postgres.yaml`.
#
# Then deploy the state manager using the bitnami helm chart
# helm install state-manager-db oci://registry-1.docker.io/bitnamicharts/postgresql -n corda --version "12.1.0" \
# -f ./state-manager-postgres.yaml \
# --timeout 10m \
# --wait
#
# Then deploy Corda using
# helm upgrade --install corda -n corda \
# charts/corda \
# --values values-prereqs.yaml \
# --values state-manager.yaml \
# --wait
#
#
# NOTE: This assumes you deploy the above in the same `corda` namespace, so that domain names containing just the service
# name are resolved (i.e. prereqs-postgresql instead of prereqs-postgresql.<namespace>). If that is not the case, you
# might need to add the namespace as a suffix.
bootstrap:
db:
stateManager:
flow:
username:
value: "postgres"
password:
valueFrom:
secretKeyRef:
name: "state-manager-db-postgresql"
key: "postgres-password"
flowMapper:
username:
value: "postgres"
password:
valueFrom:
secretKeyRef:
name: "state-manager-db-postgresql"
key: "postgres-password"
tokenSelection:
username:
value: "postgres"
password:
valueFrom:
secretKeyRef:
name: "state-manager-db-postgresql"
key: "postgres-password"
workers:
flow:
stateManager:
db:
host: "state-manager-db-postgresql"
username:
value: "statemanager-user"
password:
valueFrom:
secretKeyRef:
name: "state-manager-db-postgresql"
key: "password"
flowMapper:
stateManager:
db:
host: "state-manager-db-postgresql"
username:
value: "statemanager-user"
password:
valueFrom:
secretKeyRef:
name: "state-manager-db-postgresql"
key: "password"
tokenSelection:
stateManager:
db:
host: "state-manager-db-postgresql"
username:
value: "statemanager-user"
password:
valueFrom:
secretKeyRef:
name: "state-manager-db-postgresql"
key: "password"