-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathvalues.yaml
174 lines (140 loc) · 4.44 KB
/
values.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
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
## METADATA
# Create the lotus statefulset if true.
lotusStsCreate: true
# A dictionary of the statefulset labels. Can be used as a service selector to provide a universal endpoint to the pods.
lotusStsLabels:
app: lotus-node-app
release: api-read-master
# The replicas number for the statefulset to create.
lotusStsReplicas: 1
## VOLUME
# Path on the local disk that’s represented in the container as INFRA_LOTUS_HOME
# If true, the vol-lotus volume is mounted as the /nvme/disk path from the local disk.
lotusVolume:
name: vol-lotus
hostPath:
enabled: true
enableSubPath: true
path: /nvme/disk
#
isArchival: false
## INIT CONTAINERS
#If true, create an InitContainer that creates default folders (for lotus and for snapshots) and sets filesystem permissions.
InitContainerPermissions: true
# Set of parameters to init-container
# If downloadSnapshot.enabled: true, create an InitContainer that downloads the chain snapshot
downloadSnapshot:
enabled: true
url: null
unpack: false
checkLedger: true
dependecies:
aria2: "1.36.0-r1"
zstd: "1.5.5-r0"
## ENVIRONMENT VARIABLES
lotusEnv:
# DOCKER SCRIPTS RELATED ENVIRONMENT VARIABLES
INFRA_LOTUS_DAEMON: "true"
INFRA_LOTUS_HOME: "/home/lotus_user"
INFRA_CLEAR_RESTART: "false"
INFRA_SYNC: "true"
INFRA_SECRETVOLUME: "true"
INFRA_PERSISTNODEID: "false"
INFRA_IMPORT_SNAPSHOT: "false"
DOWNLOAD_FROM: https://snapshots.mainnet.filops.net/minimal/latest.zst
SNAPSHOTURL: /home/lotus_user/snapshot/latest.car
ALLOWED_DELAY: 3
GOLOG_LOG_FMT: "json"
# LOTUS RELATED ENVIRONMENT VARIABLES
LOTUS_FEVM_ENABLEETHRPC: "true"
LOTUS_EVENTS_MAXFILTERHEIGHTRANGE: "60480"
LOTUS_EVENTS_FILTERTTL: "504h0m0s"
LOTUS_FEVM_ENABLEETHHASHTOFILECOINCIDMAPPING: "true"
LOTUS_CHAINSTORE_ENABLESPLITSTORE: "false"
LOTUS_SKIP_APPLY_TS_MESSAGE_CALL_WITH_GAS: "1"
LOTUS_FVM_CONCURRENCY: 24
LOTUS_VM_ENABLE_TRACING: "true"
LOTUS_EVENTS_ENABLEACTOREVENTSAPI: "true"
## LOTUS CONTAINER
# Lotus Docker image
lotusContainer:
image: "glif/lotus:1.20.3-calibnet-arm-custom"
imagePullPolicy: IfNotPresent
command: ["/etc/lotus/docker/run"]
preStopCommand:
["/bin/sh", "-c", "rm -f $INFRA_LOTUS_HOME/.lotus/sync-complete"]
livenessProbe:
enabled: true
initialDelaySeconds: 300
periodSeconds: 20
successThreshold: 1
timeoutSeconds: 20
readinessProbe:
enabled: true
command: ["healthcheck"]
initialDelaySeconds: 300
periodSeconds: 60
successThreshold: 1
timeoutSeconds: 10
startupProbe:
enabled: true
failureThreshold: 1000
periodSeconds: 200
successThreshold: 1
timeoutSeconds: 10
# Constraints for scheduling pods to nodes
nodeSelector: {}
### volumeClaimTemplates:
# lotusVolumeSize is a volume size of lotus
lotusVolumeSize: "50Gi"
# the volume can be mounted as read-write by a single node.
# ReadWriteOnce access mode can allow multiple pods to access the volume when the pods are running on the same node.
lotusVolumeAccessModes:
- ReadWriteOnce
#Amazon EBS provides the volume type for our storage
lotusVolumeStorageClass: "ebs-sc-gp2"
## SERVICE
# Create the Lotus service if true.
createLotusService: true
# Set of the specify annotations
lotusServiceAnnotations:
prometheus.io/scrape: "true"
prometheus.io/port: "1234"
prometheus.io/path: "/debug/metrics"
enableLotusP2pPort: false
lotusP2pPort: 1235
## CACHE
# createCache indecates if cache deployment has to be created
createCache: false
# cacheImageRepository is a repository to pull cache image from
cacheImageRepository: "protofire/filecoin-rpc-proxy:0.0.3"
# cacheDeploymentReplicas indicates how many replicas should be in the deployment
cacheDeploymentReplicas: 2
# cacheRequestsCpu is the amount of CPU cache pod requests on schedule
cacheRequestsCpu: 500m
# cacheRequestsMemory is the amount of memory cache pod requests on schedule
cacheRequestsMemory: 1Gi
# cacheCpuLimit is the amount of CPU cache pod is limited to
cacheCpuLimit: 3000m
# cacheMemoryLimit is the amount of memory cache pod is limited to
cacheMemoryLimit: 3Gi
useCustomServiceSelector: false
customServiceSelector: {}
useLotusConfigMap: false
createDedicatedService: false
lotusRequestsCpu: 12
lotusRequestsMemory: 80Gi
lotusCpuLimit: 25
lotusMemoryLimit: 120Gi
subway:
enabled: false
image: glif/lotus:subway
imagePullPolicy: Always
rpcV0:
upstreamUrl: ws://localhost:2346/rpc/v0
serverPort: 8546
metricsPort: 9617
rpcV1:
upstreamUrl: ws://localhost:2346/rpc/v1
serverPort: 8545
metricsPort: 9616