forked from bnb-chain/node-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployment-config.yaml
More file actions
121 lines (109 loc) · 2.53 KB
/
deployment-config.yaml
File metadata and controls
121 lines (109 loc) · 2.53 KB
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
# BSC Cluster Deployment Configuration
deployment:
name: "simple-chain"
version: "1.0.0"
chain_id: 1914
# Cluster configuration
cluster:
size: 1
enable_sentry_nodes: false
enable_full_nodes: false
# Docker configuration
docker:
image_name: "nickwest-zkp/simplechain-v2"
image_tag: "latest"
registry: "ghcr.io" # Use GitHub Container Registry
# Server cluster configuration
servers:
- name: "validator-1"
host: "192.168.3.205"
user: "ubuntu"
ssh_key: "~/.ssh/id_ed25519"
role: "validator"
node_index: 0
ports:
http: 8545
ws: 8546
p2p: 30303
metrics: 6060
# - name: "validator-2"
# host: "192.168.3.209"
# user: "ubuntu"
# ssh_key: "~/.ssh/id_ed25519"
# role: "validator"
# node_index: 1
# ports:
# http: 8545
# ws: 8546
# p2p: 30303
# metrics: 6060
# - name: "validator-3"
# host: "192.168.1.103"
# user: "ubuntu"
# ssh_key: "~/.ssh/id_rsa"
# role: "validator"
# node_index: 2
# ports:
# http: 8745
# ws: 8746
# p2p: 32303
# metrics: 6260
# - name: "validator-4"
# host: "192.168.1.104"
# user: "ubuntu"
# ssh_key: "~/.ssh/id_rsa"
# role: "validator"
# node_index: 3
# ports:
# http: 8845
# ws: 8846
# p2p: 33303
# metrics: 6360
# - name: "sentry-1"
# host: "192.168.1.105"
# user: "ubuntu"
# ssh_key: "~/.ssh/id_rsa"
# role: "sentry"
# node_index: 0
# ports:
# http: 8945
# ws: 8946
# p2p: 34303
# metrics: 6460
# - name: "fullnode-1"
# host: "192.168.1.106"
# user: "ubuntu"
# ssh_key: "~/.ssh/id_rsa"
# role: "fullnode"
# node_index: 0
# ports:
# http: 9045
# ws: 9046
# p2p: 35303
# metrics: 6560
# File distribution configuration
files:
genesis: "genesis/genesis.json"
config: "config.toml"
keys_base: "keys"
deployment_base: "deployment"
# Deployment options
options:
skip_build: true # Skip Docker build since we use pre-built image from ghcr.io
skip_distribution: false # Still need to distribute config and keys
regenerate_genesis: true # Regenerate genesis.json before deployment
regenerate_configs: true # Regenerate config.toml for each server
clean_before_deploy: true
parallel_deployment: true
max_parallel: 5
# Monitoring configuration
monitoring:
enabled: true
prometheus_port: 9090
grafana_port: 3000
# Logging configuration
logging:
level: "info"
format: "json"
rotate_size: "10M"
max_backups: 5