-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathproduction.yaml
More file actions
64 lines (60 loc) · 1.61 KB
/
Copy pathproduction.yaml
File metadata and controls
64 lines (60 loc) · 1.61 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
envFrom:
- secretRef:
name: bridge-history-fetcher-secret-env
persistence:
bridge-history-fetcher:
enabled: true
type: configMap
mountPath: /app/conf/
name: bridge-history-fetcher-config
migrate-db:
enabled: true
type: secret
mountPath: /config/migrate-db.json
name: bridge-history-fetcher-migrate-db
defaultMode: "0777"
initContainers:
1-check-postgres-connection:
image: atkrad/wait4x:latest
args:
- postgresql
- $(SCROLL_BRIDGE_HISTORY_DB_DSN)
- --timeout
- "0"
envFrom:
- secretRef:
name: bridge-history-fetcher-secret-env
2-migrate-db:
image: scrolltech/bridgehistoryapi-db-cli:v4.4.59
command: ["/bin/sh", "-c", "db_cli --config /config/migrate-db.json migrate"]
volumeMounts:
- name: migrate-db
mountPath: /config/migrate-db.json
subPath: migrate-db.json
envFrom:
- secretRef:
name: bridge-history-fetcher-secret-env
configMaps:
env:
enabled: true
data:
SCROLL_L1_RPC: ""
SCROLL_L2_RPC: "http://l2-rpc:8545"
externalSecrets:
bridge-history-fetcher-secret-env:
provider: aws
data:
- remoteRef:
key: scroll/bridge-history-fetcher-secret-env
property: SCROLL_BRIDGE_HISTORY_DB_DSN
secretKey: SCROLL_BRIDGE_HISTORY_DB_DSN
refreshInterval: 2m
serviceAccount: external-secrets
bridge-history-fetcher-migrate-db:
provider: aws
data:
- remoteRef:
key: scroll/bridge-history-fetcher-migrate-db
secretKey: migrate-db.json
refreshInterval: 2m
serviceAccount: external-secrets