-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherigon_lighthouse_template.yml
130 lines (129 loc) · 3.78 KB
/
erigon_lighthouse_template.yml
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
# Save the output of this file and use kubectl create -f to import
# it into Kubernetes.
#
# Created with podman-3.4.4
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: "2022-04-29T08:49:29Z"
labels:
app: staker
name: stake_pod
spec:
shareProcessNamespace: true
containers:
- command:
- erigon
- --datadir=/home/erigon/.local/share/erigon
- --prune=htc
- --chain=mainnet # Eth1 chain to follow (e.g. goerli, mainnet)
- --private.api.addr=localhost:9090
- --metrics
- --metrics.addr=0.0.0.0
- --metrics.port=6060
- --pprof
- --pprof.addr=0.0.0.0
- --pprof.port=6061
image: docker.io/thorax/erigon:latest
name: erigon
resources: {}
securityContext:
seLinuxOptions:
level: "s0:c100" # Category provides fs isolation from other containers, must be set beforehand
capabilities:
drop:
- CAP_MKNOD
- CAP_NET_RAW
- CAP_AUDIT_WRITE
runAsGroup: 1000
runAsUser: 1000
volumeMounts:
- mountPath: /home/erigon/.local/share/erigon
name: erigon-host-datadir
- command:
- rpcdaemon
- --datadir=/home/erigon/.local/share/erigon
- --http.api=eth,erigon,web3,net,debug,trace,txpool
- --ws
- --private.api.addr=localhost:9090
image: docker.io/thorax/erigon:latest
name: erigon-rpc
resources: {}
securityContext:
seLinuxOptions:
level: "s0:c100" # Category provides fs isolation from other containers, must be set beforehand
capabilities:
drop:
- CAP_MKNOD
- CAP_NET_RAW
- CAP_AUDIT_WRITE
runAsGroup: 1000
runAsUser: 1000
volumeMounts:
- mountPath: /home/erigon/.local/share/erigon
name: erigon-host-datadir
- command:
- lighthouse
- --datadir=/home
- --network=mainnet # Eth2 chain lighthouse will follow (e.g. mainnet, prater)
- bn
- --staking
- --validator-monitor-auto
- --metrics
- --eth1-endpoints=http://localhost:8545 # Specify additional endpoints (e.g. Infura) after a ','
image: docker.io/sigp/lighthouse:latest
name: beacon
resources: {}
securityContext:
seLinuxOptions:
level: "s0:c200" # Category provides fs isolation from other containers, must be set beforehand
capabilities:
drop:
- CAP_MKNOD
- CAP_NET_RAW
- CAP_AUDIT_WRITE
runAsGroup: 2000
runAsUser: 2000
volumeMounts:
- mountPath: /home
name: lighthouse-host-datadir
- command:
- lighthouse
- --datadir=/home
- --network=mainnet # Eth2 chain lighthouse will follow (e.g. mainnet, prater)
- vc
- --enable-doppelganger-protection
- --beacon-nodes=http://localhost:5052 # Specify additional endpoints (e.g. Infura) after a ','
image: docker.io/sigp/lighthouse:latest
name: validator
resources: {}
securityContext:
seLinuxOptions:
level: "s0:c200" # Category provides fs isolation from other containers, must be set beforehand
capabilities:
drop:
- CAP_MKNOD
- CAP_NET_RAW
- CAP_AUDIT_WRITE
runAsGroup: 2000
runAsUser: 2000
volumeMounts:
- mountPath: /home
name: lighthouse-host-datadir
restartPolicy: Never
volumes: # Specify the paths to use on Host
- name: lighthouse-host-datadir
# Uncomment *either* the peristentVolumeClaim block or the hostPath block for lighthouse storage
# persistentVolumeClaim:
# claimName: lighthouse-pvc
# hostPath:
# path: # Lighthouse path
# type: Directory
- name: erigon-host-datadir
# Uncomment *either* the peristentVolumeClaim block or the hostPath block for erigon storage
# persistentVolumeClaim:
# claimName: erigon-pvc
# hostPath:
# path: # Erigon path
# type: Directory
status: {}