Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow solo to deploy pre-configured resource profiles #175

Merged
merged 27 commits into from
Apr 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
521e3d5
feat: add prompt for profile during network deploy
leninmehedy Mar 21, 2024
be9f6d2
feat: first implementation of resource profile manager
leninmehedy Mar 21, 2024
c657a10
fix: recycle haproxy pods if it is not UP after several attempts
leninmehedy Apr 1, 2024
d24a204
fix: use wait for pod ready condition to check pod condition to impro…
leninmehedy Apr 1, 2024
e9b2e50
test: use separate profile files for tests
leninmehedy Apr 2, 2024
5898ab4
fix: use port forward if load balancer IP is not in supported network…
leninmehedy Apr 2, 2024
4215ac5
fix: update profile tiny
leninmehedy Apr 2, 2024
e1504c1
doc: update README with console log of the commands
leninmehedy Apr 2, 2024
a58323a
fix: update tiny profile
leninmehedy Apr 2, 2024
cd362f0
fix: mirror node db resource spec interpretation
leninmehedy Apr 3, 2024
1708f0c
fix: add additional profiles
leninmehedy Apr 3, 2024
3f48a97
fix: create cached values file directory during solo init
leninmehedy Apr 3, 2024
4781678
feat: add dev scripts to view telemetry
leninmehedy Apr 4, 2024
d1afeb9
fix defaults and constants
leninmehedy Apr 4, 2024
ce95971
make it work
leninmehedy Apr 4, 2024
b3f7eb0
fix dev telemetry scripts
leninmehedy Apr 4, 2024
5bbf7fb
use correct FST version
leninmehedy Apr 4, 2024
0b0fcf2
fix: enable force flag for mirror-node destroy command and fix styling
leninmehedy Apr 4, 2024
40b3fd6
update wait time
leninmehedy Apr 4, 2024
4620f48
save sample dashboar
leninmehedy Apr 5, 2024
86a78d4
Merge branch 'main' into 00097-pre-configured-profiles
leninmehedy Apr 5, 2024
765732d
fix setup script
leninmehedy Apr 5, 2024
daf17da
test: increase test timeout
leninmehedy Apr 5, 2024
3012780
address PR comments and remove dev folder
leninmehedy Apr 5, 2024
32c463c
test: reduce error logging in the console for failed test to avoid co…
leninmehedy Apr 5, 2024
0f81257
Merge branch 'main' into 00097-pre-configured-profiles
leninmehedy Apr 5, 2024
9394895
test: increase test execution time to accommodate recently added chec…
leninmehedy Apr 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -513,3 +513,4 @@ secring.*
junit*.xml
node_modules/
coverage/
deleteme.yaml
68 changes: 47 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,21 @@ Kubernetes Context : kind-solo
Kubernetes Cluster : kind-solo
Kubernetes Namespace : solo
**********************************************************************************
✔ Initialize
✔ Install chart 'fullstack-deployment' [1s]
✔ Waiting for network pods to be ready [2m38s]
✔ Node: node0 (Pod: network-node0-0) [2m38s]
✔ Node: node1 (Pod: network-node1-0)
✔ Node: node2 (Pod: network-node2-0)

✔ Initialize [5s]
✔ Install chart 'fullstack-deployment' [19s]
✔ Check node pods are ready [2s]
✔ Check Node: node0 [0.8s]
✔ Check Node: node1 [1s]
✔ Check Node: node2 [0.9s]
✔ Check proxy pods are ready [0.7s]
✔ Check HAProxy for: node0 [0.7s]
✔ Check HAProxy for: node1 [0.7s]
✔ Check HAProxy for: node2 [0.7s]
✔ Check Envoy Proxy for: node0 [0.7s]
✔ Check Envoy Proxy for: node1 [0.7s]
✔ Check Envoy Proxy for: node2 [0.7s]
✔ Check auxiliary pods are ready [5s]
✔ Check MinIO [5s]
```

* Setup node with Hedera platform software.
Expand Down Expand Up @@ -233,9 +241,9 @@ Kubernetes Namespace : solo
✔ Copy gRPC TLS keys to staging
✔ Prepare config.txt for the network
✔ Fetch platform software into network nodes [1m7s]
Node: node0 [48s]
Node: node1 [44s]
Node: node2 [1m7s]
Update node: node0 [48s]
Update node: node1 [44s]
Update node: node2 [1m7s]
✔ Setup network nodes [1s]
✔ Node: node0 [1s]
✔ Copy Gossip keys [0.2s]
Expand Down Expand Up @@ -296,17 +304,35 @@ Kubernetes Context : kind-solo-e2e
Kubernetes Cluster : kind-solo-e2e
Kubernetes Namespace : solo
**********************************************************************************
✔ Initialize
✔ Enable mirror-node [4s]
✔ Prepare address book [0.1s]
✔ Deploy mirror-node [3s]
✔ Check Mirror node components are ACTIVE [3s]
✔ Check Postgres DB [3s]
✔ Check Importer
✔ Check REST API
✔ Check Web3
✔ Check GRPC
✔ Check Hedera Explorer
✔ Initialize [7s]
✔ Enable mirror-node [1m10s]
✔ Prepare address book [1s]
✔ Deploy mirror-node [1m9s]
✔ Check pods are ready [59s]
✔ Check Postgres DB [12s]
✔ Check REST API [39s]
✔ Check GRPC [30s]
✔ Check Monitor [59s]
✔ Check Importer [48s]
✔ Check Hedera Explorer [0.7s]
```

* Deploy a JSON RPC relay

```
$ solo relay deploy
******************************* Solo *********************************************
Version : 0.22.1
Kubernetes Context : microk8s
Kubernetes Cluster : microk8s-cluster
Kubernetes Namespace : solo
**********************************************************************************
(node:7924) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
✔ Initialize [1s]
✔ Prepare chart values
✔ Deploy JSON RPC Relay [9s]
✔ Check relay is ready [21s]
```

You may view the list of pods using `k9s` as below:
Expand Down
101 changes: 36 additions & 65 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
"figlet": "^1.7.0",
"got": "^14.2.0",
"inquirer": "^9.2.15",
"ip": "^2.0.1",
"js-base64": "^3.7.7",
"js-yaml": "^4.1.0",
"listr2": "^8.0.2",
"semver": "^7.6.0",
"stream-buffers": "^3.0.2",
Expand Down
Loading