This repository has been archived by the owner on Apr 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathstatefulset.yaml
126 lines (126 loc) · 3.45 KB
/
statefulset.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: StatefulSet
metadata:
name: ethereum
spec:
selector:
matchLabels:
app: ethereum
replicas: 1
serviceName: ethereum
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: ethereum
spec:
terminationGracePeriodSeconds: 300
enableServiceLinks: false
initContainers:
- name: genesis
image: alpine
command: ["sh", "-c"]
args:
[
"if [ ! -f genesis.ssz ]; then wget 'https://github.com/eth-clients/eth2-networks/raw/master/shared/prater/genesis.ssz'; fi",
]
workingDir: "/data"
volumeMounts:
- name: prysm
mountPath: /data
containers:
- name: geth
image: ethereum/client-go
ports:
- containerPort: 8545
- containerPort: 8546
- { containerPort: 30303, protocol: TCP }
- { containerPort: 30303, protocol: UDP }
args:
- --goerli
- --datadir=/data
- --http
- --http.api=eth,net,web3
- --http.addr=0.0.0.0
- --http.vhosts=*
- --http.corsdomain=*
- --ws
- --ws.origins=*
- --ws.addr=0.0.0.0
- --ws.api=eth,net,web3
- --graphql
- --graphql.corsdomain=*
- --graphql.vhosts=*
resources:
requests:
memory: 2G
cpu: 1000m
limits:
memory: 16G
cpu: 8000m
livenessProbe:
httpGet:
path: /
port: 8545
readinessProbe:
httpGet:
path: /
port: 8545
volumeMounts:
- name: geth
mountPath: /data
- name: beacon
image: gcr.io/prysmaticlabs/prysm/beacon-chain
args:
- --goerli
- --accept-terms-of-use
- --datadir=/data
- --execution-endpoint=/geth/geth.ipc
- --genesis-state=/data/genesis.ssz
- --checkpoint-sync-url=https://goerli.beaconstate.info
- --genesis-beacon-api-url=https://goerli.beaconstate.info
- --rpc-host=0.0.0.0
- --rpc-port=4000
- --grpc-gateway-corsdomain=*
- --grpc-gateway-host=0.0.0.0
- --grpc-gateway-port=3500
ports:
- containerPort: 4000
name: grpc
- containerPort: 3500
name: jsonrpc
- containerPort: 13000
name: p2ptcp
- containerPort: 12000
protocol: UDP
name: p2pudp
readinessProbe:
tcpSocket:
port: 4000
livenessProbe:
tcpSocket:
port: 4000
startupProbe:
failureThreshold: 60
tcpSocket:
port: 4000
resources:
limits:
cpu: 8000m
memory: 16G
requests:
cpu: 1000m
memory: 4G
volumeMounts:
- name: prysm
mountPath: /data
- name: geth
mountPath: /geth
volumes:
- name: geth
persistentVolumeClaim:
claimName: chaindata-geth
- name: prysm
persistentVolumeClaim:
claimName: chaindata-prysm