-
Notifications
You must be signed in to change notification settings - Fork 27
/
state-manager.yaml
64 lines (62 loc) · 2.25 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
# Override file suitable for local deployment of the Corda Helm chart against version 0.2.0 of the corda-dev-prereqs Helm chart with a State Manager database isolated from the cluster database.
#
# Create local docker images:
# ./gradlew publishOSGiImage --parallel
#
# Deploy corda-dev-prereqs Helm Chart:
# helm -n corda install prereqs oci://registry-1.docker.io/corda/corda-dev-prereqs --version 0.2.0 --timeout 10m --wait
#
# Deploy state manager database instance:
# helm -n corda install state-manager-db oci://registry-1.docker.io/bitnamicharts/postgresql --version "12.1.0" --values state-manager-postgres.yaml --timeout 10m --wait
#
# Deploy corda Helm Chart:
# helm dependency build charts/corda && helm -n corda upgrade --install corda charts/corda --values debug.yaml --values values-prereqs.yaml --values state-manager.yaml --wait
#
# See `debug.yaml` for debug settings.
#
# NOTE: The below assumes you deploy Kafka and the PostgreSQL database in the same 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.
#
databases:
- id: "default"
name: "cordacluster"
port: 5432
type: "postgresql"
host: "prereqs-postgres"
- id: "isolated-state-manager"
name: "state-manager"
port: 5432
type: "postgresql"
host: "state-manager-db-postgresql"
bootstrap:
db:
databases:
- id: "default"
username:
value: "postgres"
password:
valueFrom:
secretKeyRef:
name: "prereqs-postgres"
key: "postgres-password"
- id: "isolated-state-manager"
username:
value: "postgres"
password:
valueFrom:
secretKeyRef:
name: "state-manager-db-postgresql"
key: "postgres-password"
stateManager:
flowCheckpoint:
storageId: "isolated-state-manager"
flowMapping:
storageId: "isolated-state-manager"
flowStatus:
storageId: "isolated-state-manager"
keyRotation:
storageId: "isolated-state-manager"
p2pSession:
storageId: "isolated-state-manager"
tokenPoolCache:
storageId: "isolated-state-manager"