-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgeth.yaml
52 lines (52 loc) · 922 Bytes
/
geth.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
apiVersion: v1
kind: Service
metadata:
name: geth
labels:
app: geth
spec:
ports:
- name: rpc
port: 8545
targetPort: 8545
- name: discovery
port: 30303
targetPort: 30303
selector:
app: geth
---
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: geth
spec:
replicas: 1
selector:
matchLabels:
app: geth
strategy:
type: Recreate
template:
metadata:
labels:
app: geth
spec:
containers:
- image: ethereum/client-go:v1.7.3
name: geth
command: ["geth"]
args:
- "--testnet"
- "--datadir=/mnt"
- "--rpc"
- "--rpcaddr=0.0.0.0"
ports:
- containerPort: 8545
- containerPort: 30303
volumeMounts:
- name: efs-pvc
mountPath: /mnt
volumes:
- name: efs-pvc
persistentVolumeClaim:
claimName: efs