-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment-lighthouse.yaml
126 lines (126 loc) · 2.85 KB
/
deployment-lighthouse.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: lighthouse-deployment
spec:
replicas: 1
selector:
matchLabels:
app: lighthouse
template:
metadata:
labels:
app: lighthouse
spec:
containers:
- name: lighthouse
image: sigp/lighthouse:v5.3.0
command: ["lighthouse", "bn"]
args:
- "--network"
- "mainnet"
- "--http"
- "--http-address"
- "0.0.0.0"
- "--execution-endpoint"
- "http://reth-svc.iosis-tech-mainnet-ethereum-node.svc.cluster.local:8551"
- "--metrics"
- "--metrics-address"
- "0.0.0.0"
- "--execution-jwt"
- "/root/jwt/jwt.hex"
- "--checkpoint-sync-url"
- "https://mainnet-checkpoint-sync.stakely.io"
- "--checkpoint-sync-url-timeout"
- "1000"
- "--disable-backfill-rate-limiting"
- "--reconstruct-historic-states"
- "--prune-blobs"
- "false"
- "--prune-payloads"
- "false"
ports:
- containerPort: 5052
name: http
protocol: TCP
- containerPort: 5053
name: secondary-http
protocol: TCP
- containerPort: 5054
name: metrics
protocol: TCP
- containerPort: 9000
name: tcp-p2p
protocol: TCP
- containerPort: 9000
name: udp-p2p
protocol: UDP
volumeMounts:
- name: lighthouse-data
mountPath: /root/.lighthouse
- name: jwt-token
mountPath: /root/jwt
readOnly: true
volumes:
- name: lighthouse-data
persistentVolumeClaim:
claimName: lighthouse-pvc
- name: jwt-token
secret:
secretName: jwt-secret
items:
- key: JWT
path: jwt.hex
---
apiVersion: v1
kind: Service
metadata:
name: lighthouse-svc
spec:
ports:
- port: 5052
targetPort: 5052
protocol: TCP
name: http
- port: 5053
targetPort: 5053
protocol: TCP
name: secondary-http
- port: 5054
targetPort: 5054
protocol: TCP
name: metrics
- port: 9000
targetPort: 9000
protocol: TCP
name: tcp-p2p
- port: 9000
targetPort: 9000
protocol: UDP
name: udp-p2p
selector:
app: lighthouse
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: lighthouse-ingress
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: "0"
spec:
ingressClassName: nginx-ingress-prod
tls:
- hosts:
- beacon.mainnet.ethereum.iosis.tech
secretName: ethereum-mainnet-tls
rules:
- host: beacon.mainnet.ethereum.iosis.tech
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: lighthouse-svc
port:
number: 5052