-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathvalues.yaml
More file actions
156 lines (143 loc) · 3.13 KB
/
values.yaml
File metadata and controls
156 lines (143 loc) · 3.13 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
---
global:
nameOverride: &app_name rollup-node
fullnameOverride: *app_name
controller:
replicas: 1
strategy: Recreate
type: deployment
image:
repository: scrolltech/rollup-relayer
pullPolicy: Always
tag: v4.4.71
env:
- name: METRICS_PORT
value: 8090
envFrom:
- configMapRef:
name: rollup-node-env
command: [
"/bin/sh",
"-c",
"rollup_relayer --config /app/conf/rollup-config.json \
--genesis /app/genesis/genesis.json \
--import-genesis \
--metrics --metrics.addr 0.0.0.0 --metrics.port ${METRICS_PORT} \
--log.debug --verbosity 3",
]
resources:
requests:
memory: "50Mi"
cpu: "50m"
limits:
memory: "200Mi"
cpu: "100m"
service:
main:
enabled: true
ports:
http:
enabled: true
port: 8090
probes:
liveness:
enabled: false
readiness:
enabled: false
startup:
enabled: false
persistence:
*app_name:
enabled: true
type: configMap
mountPath: /app/conf/
name: rollup-config
genesis:
enabled: true
type: configMap
mountPath: /app/genesis/
name: genesis-config
migrate-db:
enabled: true
type: configMap
mountPath: /config/migrate-db.json
name: rollup-node-migrate-db
defaultMode: "0777"
wait-for-l1-script:
enabled: true
type: configMap
name: wait-for-l1-script
defaultMode: "0777"
wait-for-contracts-script:
enabled: true
type: configMap
name: wait-for-contracts-script
defaultMode: "0777"
initContainers:
1-check-postgres-connection:
image: atkrad/wait4x:latest
args:
- postgresql
- $(SCROLL_ROLLUP_DB_CONFIG_DSN)
- --timeout
- "0"
envFrom:
- configMapRef:
name: rollup-node-env
2-migrate-db:
image: scrolltech/rollup-db-cli:v4.4.71
command: ["/bin/sh", "-c", "db_cli migrate --config /config/migrate-db.json"]
volumeMounts:
- name: migrate-db
mountPath: /config/migrate-db.json
subPath: migrate-db.json
envFrom:
- configMapRef:
name: rollup-node-env
3-wait-for-l1:
image: scrolltech/scroll-alpine:v0.0.1
command:
- /bin/sh
- -c
- /wait-for-l1.sh $L1_RPC_ENDPOINT
envFrom:
- configMapRef:
name: rollup-node-env
volumeMounts:
- name: wait-for-l1-script
mountPath: /wait-for-l1.sh
subPath: wait-for-l1.sh
4-wait-for-contract:
image: scrolltech/scroll-alpine:v0.0.1
command:
- /bin/sh
- -c
- /wait-for-contract.sh $L1_RPC_ENDPOINT $L1_SCROLL_CHAIN_PROXY_ADDR
envFrom:
- configMapRef:
name: rollup-node-env
volumeMounts:
- name: wait-for-contracts-script
mountPath: /wait-for-contract.sh
subPath: wait-for-contract.sh
configMaps:
migrate-db:
enabled: true
data:
migrate-db.json: |
{
"driver_name": "postgres",
"dsn": ""
}
serviceMonitor:
main:
enabled: true
labels:
release: scroll-sdk
serviceName: '{{ include "scroll.common.lib.chart.names.fullname" $ }}'
endpoints:
- port: http
interval: 1m
scrapeTimeout: 10s
scrollConfig: |
{}