-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cli): implement node setup command (#491)
Signed-off-by: Lenin Mehedy <[email protected]>
- Loading branch information
1 parent
5948113
commit 7920cb6
Showing
42 changed files
with
1,895 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
fullstack-network-manager/resources/templates/config.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# ====================================================================================================================== | ||
# Address book Format Description | ||
# ====================================================================================================================== | ||
# Address book format varies across versions since it evolved over time. As of July 27, 2023 the below formats were | ||
# relevant for recent versions. Latest version is available in the file: hedera-services/hedera-node/config.txt | ||
# | ||
# - v.0.39.* (or before) format: | ||
# Fields: address, <NODE_ID>, <NODE_NAME>, <NODE_STAKE_AMOUNT>, <INTERNAL_IP>, <INTERNAL_GOSSIP_PORT>, <EXTERNAL_IP>, <EXTERNAL_GOSSIP_PORT>, <ACCOUNT_ID> | ||
# Example: address, 0, node0, 1, 10.128.0.27, 50111, 35.223.93.31, 30124, 0.0.3 | ||
# | ||
# - v.0.4* format: | ||
# Fields: address, <NODE_ID>, <NODE_NICK_NAME>, <NODE_NAME>, <NODE_STAKE_AMOUNT>, <INTERNAL_IP>, <INTERNAL_GOSSIP_PORT>, <EXTERNAL_IP>, <EXTERNAL_GOSSIP_PORT>, <ACCOUNT_ID> | ||
# Example: address, 0, n0, node0, 1, 10.128.0.27, 50111, 35.223.93.31, 30124, 0.0.3 | ||
# | ||
# - v.0.41* (onward) we need to append the below formatted line with next node ID after the list of "address" lines | ||
# <address book lines> | ||
# nextNodeId, <NEXT_NODE_ID> | ||
# | ||
# Field descriptions: | ||
# =========================== | ||
# NODE_ID: This increments for each node and starts from 0. | ||
# NEXT_NODE_ID: The id for the next node (i.e. last node ID + 1) | ||
# NODE_NICK_NAME: This is a string (alphanumeric). e.g. node0 | ||
# NODE_NAME: This is a string (alphanumeric). e.g. node0 or n0 | ||
# NODE_STAKE_AMOUNT: A long value. e.g. 1 or a larger number | ||
# INTERNAL_IP: This is the pod IP | ||
# INTERNAL_GOSSIP_PORT: Default gossip port is 50111. So use the exposed port that is mapped to 50111 in container. | ||
# EXTERNAL_IP: This is the service IP | ||
# EXTERNAL_GOSSIP_PORT: Default gossip port is 50111. This is usually same as INTERNAL_GOSSIP_PORT unless mapped differently. | ||
# ACCOUNT_ID: Must start from 0.0.3 | ||
# | ||
|
||
# Account restrictions: | ||
# =========================== | ||
# All ACCOUNT_ID should start from 0.0.3 because of restricted accounts as below: | ||
# - 0.0.0 restricted and not usable | ||
# - 0.0.1 minting account and not usable | ||
# - 0.0.2 treasury account | ||
# | ||
# Default Ports | ||
# =========================== | ||
# We only need to specify the gossip port (INTERNAL_GOSSIP_PORT, EXTERNAL_GOSSIP_PORT). Below are some details on other | ||
# ports that a node may expose: | ||
# - 50111: gossip port | ||
# - 50211: grpc non-tls (for platform services) | ||
# - 50212: grpc tls (for platform services) | ||
# | ||
# IP Address | ||
# =========================== | ||
# When deploying in a kubernetes cluster, we need to use the following IP mapping: | ||
# - INTERNAL_IP: This should be the Pod IP exposing gossip port (i.e. 50111) | ||
# - EXTERNAL_IP: This should be the cluster IP of the service exposing gossip port (i.e. 50111) | ||
# | ||
# | ||
# Example config.txt (for v0.4* onward) | ||
# =========================== | ||
# swirld, 123 | ||
# app, HederaNode.jar | ||
# address, 0, node0, node0, 1, 10.244.0.197, 56789, 10.96.61.84, 50111, 0.0.0 | ||
# address, 1, node1, node1, 1, 10.244.0.198, 56789, 10.96.163.93, 50111, 0.0.1 | ||
# nextNodeId, 2 | ||
# ====================================================================================================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
-----BEGIN PRIVATE KEY----- | ||
MIIJQwIBADANBgkqhkiG9w0BAQEFAASCCS0wggkpAgEAAoICAQDd8OHe3OmcPVTI | ||
OlSDgBac2yRnD9br2O+jhCDVPKRwC8/8PFko816qXLti/Y4Csuu8OBQC6KFxU8mK | ||
G05RYJpuCsW78h8mSUSb7P1HMmS8O4+7VSSLM4i9xJaGizH82oOOQpjdbGJwZdeN | ||
thSChkR//A4BpyFr1jipZB5vc8Vk6GFV2+NrbBK4ooOxmrVFIZiI690uC9exKmTb | ||
QnDeFE1z3pcCww+JbFFMBGF77ppz67HFaBnLJBGTygRyg8kmkAkN23d9COTTzZCH | ||
y79a8O/beiRbCb83XIbB31JVT8d38KW8EojxzRRSYDLUR94BHdCBUL+XwtmfMf7a | ||
wjS/4xYSvtknUQfLdbkuzmEyHafEQlScEsx81Yt6izd/d7b9AYqn7JPkdbUt6J6P | ||
YMw5Lh9AOTKCyj3dMNGybE+qYEmHqkOJggX/HREA54qQuaBtL2yzDzQrjm5y8WaN | ||
mNGLotWIY1+zpvRinhHUgokhtnonRqwWOsyWpzOfLLfIsdzGFJHmTu+EOA2WyuWe | ||
+vdGXQz7CZQh41QccPIq+O6Ny5/RwSsykpcYH1gSOt5aAK+WRlDWnWTZbF48bWgw | ||
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D/opExIDjh2c6tfkJDiP26rw3GowNdPTBoigda3RgUXgBPTf | ||
o8752Hq7edHsHKmVF2bKNB9ow5mdyUpjvXjIPLMDJgSEO3o2/MkBiXiiCQ0AV+DP | ||
hBjD4LOjRwZFCDFplapwHy9nAF/WQ/MtttML2/DrdH/IXEQtYONiK0P0X+A1OlTK | ||
l3kCggEBAKlCEipr/Pi8Agjle0ZkbyTCejJHkBoQhHiUCjysi6tZK51kunrYELAp | ||
bHR8Iowi4lSx0AOtPPkxfyt3kbQY7rDZZXdUdRwPv5Pz4hmjeqEPVFw5MOvLi7rj | ||
w0zc90EtzRtlz5XhJZdDQLlI9wzVI0aYsZybFYe7eEAkSRh+xRCf+0ohQLlWIAMX | ||
HCGxaY6WsUv1Gl5tMtVOJ5XFAnw5vto1ezn3l81DIjNPCFcE/7r2PPWQijVICBz1 | ||
h8SXewmOWysM67KtSXMoW08RxXU0fqjouLWMyPX+aPGky40EafV8c4IKtnib6lSB | ||
TJ2llEjO54rp2QqDlW1mxbmZwuj3ppQ= | ||
-----END PRIVATE KEY----- |
Oops, something went wrong.