-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.yaml
46 lines (45 loc) · 1.29 KB
/
deploy.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: evm-archive-${evm_chain}-${evm_network}${evm_shard}
spec:
selector:
matchLabels:
app: evm-archive-${evm_chain}-${evm_network}${evm_shard}
template:
metadata:
labels:
app: evm-archive-${evm_chain}-${evm_network}${evm_shard}
spec:
containers:
- name: evm-archive
image: "${image_evm_archive}"
env:
- name: PGPASSWORD
value: "${db_password_evm_archive}"
- name: PGHOST
value: "${db_host}"
- name: PGDATABASE
value: "${evm_chain}_${evm_network}${evm_shard}_${namespace}"
- name: EVM_ARCHIVE_SCHEMA
value: data
- name: PGUSER
value: "evm_archive"
- name: EVM_ARCHIVE_ENDPOINT
value: "https://${evm_chain}.api.onfinality.io/public"
- name: EVM_ARCHIVE_FROM_BLOCK
value: 18327729
# - name: EVM_ARCHIVE_TO_BLOCK
# value: 18327729
- name: EVM_ARCHIVE_BLOCK_STEP
value: 10
- name: EVM_ARCHIVE_SLEEP_SECONDS
value: 5
# value: "http://${evm_network}:9000"
# resources:
# limits:
# memory: "1024Mi"
## cpu: "1000m"
# requests:
# memory: "200Mi"
## cpu: "100m"