-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalidator-2.yml
120 lines (120 loc) · 2.86 KB
/
validator-2.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
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: v1-validator2
spec:
selector:
matchLabels:
app: v1-validator2
serviceName: v1-validator2
replicas: 1
template:
metadata:
labels:
app: v1-validator2
v1-purpose: validator
spec:
containers:
- name: pocket
image: poktnetwork/pocket-v1:main-dev
args:
- pocket
- -config=/configs/config.json
ports:
- containerPort: 8221
name: pre2p
- containerPort: 8222
name: p2p
volumeMounts:
- name: config-volume
mountPath: /configs
- name: genesis-volume
mountPath: /genesis.json
subPath: genesis.json
- name: v1-validator2-blockstore
mountPath: /blockstore
volumes:
- name: config-volume
configMap:
name: v1-validator2-configs
- name: genesis-volume
configMap:
name: v1-localnet-genesis
volumeClaimTemplates:
- metadata:
name: v1-validator2-blockstore
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi
---
apiVersion: v1
kind: Service
metadata:
name: v1-validator2
labels:
app: v1-validator2
spec:
ports:
- port: 8221
name: pre2p
- port: 8222
name: p2p
# clusterIP: None
selector:
app: v1-validator2
---
apiVersion: v1
kind: ConfigMap
metadata:
name: v1-validator2-configs
data:
config.json: |
{
"root_dir": "/data",
"genesis_source": {
"file": {
"path": "/genesis.json"
}
},
"private_key": "2d00000000000000000000000000000000000000000000000000000000000000ee37d8c8e9cf42a34cfa75ff1141e2bc0ff2f37483f064dce47cb4d5e69db1d4",
"enable_telemetry": true,
"p2p": {
"consensus_port": 8221,
"use_raintree": true,
"connection_type": "tcp",
"protocol": "tcp",
"address": "0.0.0.0:8222",
"peers": [
"v1-validator1:8222",
"v1-validator2:8222",
"v1-validator3:8222",
"v1-validator4:8222"
]
},
"consensus": {
"max_mempool_bytes": 500000000,
"max_block_bytes": 4000000,
"pacemaker": {
"timeout_msec": 5000,
"manual": true,
"debug_time_between_steps_msec": 1000
}
},
"pre_persistence": {
"capacity": 99999,
"mempool_max_bytes": 99999,
"mempool_max_txs": 99999
},
"persistence": {
"postgres_url": "postgres://postgres:postgres@postgresql:5432/postgres",
"schema": "validator2",
"block_store_path": "/blockstore"
},
"utility": {},
"telemetry": {
"address": "0.0.0.0:9000",
"endpoint": "/metrics"
}
}