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

chore(kurtosis): Clean up Kurtosis and Support for Cloud Deployments #2401

Merged
merged 28 commits into from
Feb 3, 2025

Conversation

rezbera
Copy link
Contributor

@rezbera rezbera commented Jan 23, 2025

This PR makes changes to allow for easier run of Kurtosis on K8s based environments.

Main changes:

  • Setting min values that don't result in K8s running out of resources
  • README

Copy link

codecov bot commented Jan 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 32.36%. Comparing base (2271084) to head (815e098).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2401   +/-   ##
=======================================
  Coverage   32.36%   32.36%           
=======================================
  Files         350      350           
  Lines       15592    15592           
  Branches       20       20           
=======================================
  Hits         5047     5047           
  Misses      10182    10182           
  Partials      363      363           

@@ -71,9 +71,9 @@ network_configuration:
node_settings:
consensus_settings:
specs:
min_cpu: 0
min_cpu: 1000
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If min is not set, then it defaults to max value on K8s

Comment on lines -50 to -56
stop-gcp-devnet:
kurtosis enclave stop my-gcp-devnet2

# Stops and removes the specified Kurtosis enclave
reset-gcp-devnet:
$(MAKE) stop-gcp-devnet
kurtosis enclave rm my-gcp-devnet2
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can add more commands if they are useful but lets reduce bloat

images:
beaconkit: northamerica-northeast1-docker.pkg.dev/prj-berachain-common-svc-01/berachain/beacon-kit:main
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is in a private image repo

@rezbera rezbera marked this pull request as ready for review January 23, 2025 18:52
@rezbera rezbera requested a review from a team as a code owner January 23, 2025 18:52
Comment on lines 125 to 126
- name: "otterscan" # otterscan supports only erigon nodes
client: "el-full-erigon-3"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how will this run if the erigon node isnt enabled?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed otterscan as noone is using it afaik

@rezbera rezbera changed the title WIP : chore(kurtosis): Clean up Kurtosis chore(kurtosis): Clean up Kurtosis Jan 24, 2025
@rezbera rezbera changed the title chore(kurtosis): Clean up Kurtosis chore(kurtosis): Clean up Kurtosis and Support for Cloud Deployments Jan 24, 2025
@rezbera rezbera requested a review from calbera January 25, 2025 00:23
@rezbera rezbera enabled auto-merge (squash) January 25, 2025 02:21
@rezbera rezbera requested a review from nidhi-singh02 January 25, 2025 18:41
# Starts a Kurtosis enclave in the cloud using the latest image tag
start-devnet-cloud: install-kurtosis
kurtosis run ./kurtosis --args-file ./kurtosis/beaconkit-cloud.yaml \
--enclave my-cloud-devnet-$(shell whoami) --parallelism 200 --production
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why remove the --image-download always tag?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NBD, added back

@rezbera rezbera requested a review from nidhi-singh02 January 31, 2025 19:51
Copy link
Contributor

@nidhi-singh02 nidhi-singh02 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@rezbera rezbera merged commit 1aff871 into main Feb 3, 2025
19 checks passed
@rezbera rezbera deleted the kurtosis-party branch February 3, 2025 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants