Skip to content

Commit

Permalink
add ssz-devnet-0
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabasbusa committed Oct 11, 2024
1 parent b31dd60 commit f911434
Show file tree
Hide file tree
Showing 101 changed files with 97,709 additions and 23 deletions.
4 changes: 2 additions & 2 deletions ansible/inventories/devnet-0/group_vars/all/images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ default_ethereum_client_images:
### Consensus layer clients
lighthouse: sigp/lighthouse:latest
lodestar: chainsafe/lodestar:latest
nimbus: statusim/nimbus-eth2:multiarch-latest
nimbus: ethpandaops/nimbus-eth2:fusaka-light-b766355
prysm: gcr.io/prysmaticlabs/prysm/beacon-chain:latest
prysm_validator: gcr.io/prysmaticlabs/prysm/validator:latest
teku: consensys/teku:latest
Expand All @@ -11,7 +11,7 @@ default_ethereum_client_images:
besu: hyperledger/besu:latest
geth: ethereum/client-go:stable
erigon: thorax/erigon:devel
ethereumjs: ethpandaops/ethereumjs:master
ethereumjs: ethpandaops/ethereumjs:eip-6493-f768aef
nethermind: nethermindeth/nethermind:master
reth: ethpandaops/reth:main

Expand Down
25 changes: 20 additions & 5 deletions ansible/inventories/devnet-0/group_vars/bootnode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,20 @@ bootstrap_default_user_authorized_keys_github_team_el:
ethereum_node_el: ethereumjs
ethereum_node_cl: nimbus
ethereum_node_cl_validator_enabled: false

# role: validator_keys
validator_keys_sync_files:
- src: "{{ inventory_dir }}/files/validator_keys/{{ inventory_hostname }}/nimbus-keys/"
dest: "{{ nimbus_validator_datadir }}/keys/"
- src: "{{ inventory_dir }}/files/validator_keys/{{ inventory_hostname }}/secrets/"
dest: "{{ nimbus_validator_datadir }}/secrets/"

validator_bls_sync_files:
- src: "{{ inventory_dir }}/files/validator_keys/{{ inventory_hostname }}/change_operations.json"
dest: "{{ nimbus_validator_datadir }}/change_operations.json"
owner: nimbus
group: nimbus

# role: ethpandaops.general.nimbus
nimbus_container_name: beacon
nimbus_container_image: "{{ default_ethereum_client_images.nimbus }}"
Expand All @@ -39,22 +53,20 @@ nimbus_container_volumes:
- "{{ nimbus_auth_jwt_path }}:/execution-auth.jwt:ro"
- "{{ eth_testnet_config_dir }}:/network-config:ro"
nimbus_container_command_extra_args: >-
{{ nimbus_container_command_extra_simple_args + nimbus_container_command_extra_bootnode_args }}
{{ nimbus_container_command_extra_simple_args }}
nimbus_container_command_extra_simple_args:
- --network=/network-config
- --validator-monitor-auto=false
- --doppelganger-detection=off
- --log-level=INFO
- --light-client-data-serve=false
- --graffiti={{ ansible_hostname }}
nimbus_container_command_extra_bootnode_args: >-
{{ ethereum_cl_bootnodes | map('regex_replace', '^', '--bootstrap-node=') | list }}
nimbus_validator_datadir: /data/nimbus-validator
nimbus_container_validator_volumes:
- "{{ nimbus_validator_datadir }}:/validator-data"
nimbus_container_pull: true


# role: ethpandaops.general.ethereumjs
ethereumjs_container_name: execution
ethereumjs_container_image: "{{ default_ethereum_client_images.ethereumjs }}"
Expand All @@ -66,9 +78,12 @@ ethereumjs_container_volumes:
- "{{ ethereumjs_datadir }}:/data"
- "{{ ethereumjs_auth_jwt_path }}:/execution-auth.jwt:ro"
- "{{ eth_testnet_config_dir }}:/network-config:ro"

ethereum_node_fact_discovery_el_enode_cmd:
ethereumjs: cat /data/ethereumjs/genesis/rlpx

ethereumjs_container_command_extra_args:
- --gethGenesis=/network-config/genesis.json
- --bootnodes={{ ethereum_el_bootnodes | join(',') }}
- --maxPeers=75
- --isSingleNode=true

Expand Down
36 changes: 36 additions & 0 deletions ansible/inventories/devnet-0/inventory.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
localhost

[all:vars]
ethereum_network_name=ssz-devnet-0

[bootnode]
bootnode-1 ansible_host=167.99.210.119 ipv6=2a03:b0c0:2:f0::f0e:1001 cloud=digitalocean cloud_region=ams3 validator_start=0 validator_end=100


# Consensus client groups

[lighthouse:children]
[lodestar:children]
[nimbus:children]
[teku:children]
[prysm:children]
[grandine:children]

# Execution client groups

[besu:children]
[ethereumjs:children]
[geth:children]
[nethermind:children]
[erigon:children]
[reth:children]

# Global groups

[consensus_node:children]

[execution_node:children]

[ethereum_node:children]
consensus_node
execution_node
23 changes: 23 additions & 0 deletions kubernetes/devnet-0/assertoor/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
6 changes: 6 additions & 0 deletions kubernetes/devnet-0/assertoor/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: assertoor
repository: https://ethpandaops.github.io/ethereum-helm-charts
version: 1.0.0
digest: sha256:2d4ee7434b5215b6b01b9ac1a9b96edc688b1dfe60d01ed8c1ded7540c9c45f6
generated: "2024-10-11T19:14:39.883168+02:00"
11 changes: 11 additions & 0 deletions kubernetes/devnet-0/assertoor/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Ansible managed. Don't change this file manually. Template info: /vendor/collections/ansible_collections/ethpandaops/general/roles/generate_kubernetes_config/templates/Chart.yaml.j2

apiVersion: v2
name: assertoor
description: A Helm chart for Kubernetes
type: application
version: 0.1.0
dependencies:
- name: assertoor
repository: https://ethpandaops.github.io/ethereum-helm-charts
version: 1.0.0
Binary file not shown.
55 changes: 55 additions & 0 deletions kubernetes/devnet-0/assertoor/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Ansible managed. Don't change this file manually. Template info: /vendor/collections/ansible_collections/ethpandaops/general/roles/generate_kubernetes_config/templates/assertoor.yaml.j2

assertoor:
fullnameOverride: assertoor

image:
repository: ethpandaops/assertoor
tag: latest
pullPolicy: Always
resources:
requests:
cpu: 500m
memory: 500Mi
limits:
cpu: 2000m
memory: 2Gi

ingress:
enabled: true
className: ingress-nginx-public
annotations:
cert-manager.io/cluster-issuer: letsencrypt-production
hosts:
- host: assertoor.ssz-devnet-0.ethpandaops.io
paths:
- path: /
pathType: Prefix

ingressAdmin:
enabled: true
className: ingress-nginx-public
annotations:
cert-manager.io/cluster-issuer: letsencrypt-production
hosts:
- host: assertoor-admin.ssz-devnet-0.ethpandaops.io
paths:
- path: /
pathType: Prefix

persistence:
enabled: true

endpoints:
- name: bootnode-1
executionUrl: https://<path:/secrets/services/services.enc.yaml#ethereum | jsonPath {.testnets.ssz-devnets.node_ingress.combined}>@rpc.bootnode-1.ssz-devnet-0.ethpandaops.io
consensusUrl: https://<path:/secrets/services/services.enc.yaml#ethereum | jsonPath {.testnets.ssz-devnets.node_ingress.combined}>@bn.bootnode-1.ssz-devnet-0.ethpandaops.io

validatorNamesInventory: https://config.ssz-devnet-0.ethpandaops.io/api/v1/nodes/validator-ranges
globalVariables:
walletPrivkey: "<path:/secrets/services/services.enc.yaml#ethereum | jsonPath {.testnets.ssz-devnets.assertoor_private_key}>"
clientPairNames:
- bootnode-1
validatorPairNames:

assertoorTests: []
23 changes: 23 additions & 0 deletions kubernetes/devnet-0/beacon-metrics-gazer/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
6 changes: 6 additions & 0 deletions kubernetes/devnet-0/beacon-metrics-gazer/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: beacon-metrics-gazer
repository: https://ethpandaops.github.io/ethereum-helm-charts
version: 0.1.3
digest: sha256:25670c466402ba0216633aa1bea24a43329fac709a6c633bba91c5663620c2cc
generated: "2024-10-11T19:10:53.013809+02:00"
11 changes: 11 additions & 0 deletions kubernetes/devnet-0/beacon-metrics-gazer/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Ansible managed. Don't change this file manually. Template info: /vendor/collections/ansible_collections/ethpandaops/general/roles/generate_kubernetes_config/templates/Chart.yaml.j2

apiVersion: v2
name: beacon-metrics-gazer
description: A Helm chart for Kubernetes
type: application
version: 0.1.0
dependencies:
- name: beacon-metrics-gazer
repository: https://ethpandaops.github.io/ethereum-helm-charts
version: 0.1.3
Binary file not shown.
57 changes: 57 additions & 0 deletions kubernetes/devnet-0/beacon-metrics-gazer/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Ansible managed. Don't change this file manually. Template info: /vendor/collections/ansible_collections/ethpandaops/general/roles/generate_kubernetes_config/templates/beacon-metrics-gazer.yaml.j2

beacon-metrics-gazer:
image:
repository: dapplion/beacon-metrics-gazer
tag: latest
pullPolicy: Always
fullnameOverride: beacon-metrics-gazer
resources:
requests:
cpu: 68m
memory: 128Mi
limits:
cpu: 128m
memory: 256Mi

serviceMonitor:
enabled: true
labels:
vmagent: common
network: "ssz-devnet-0"

customCommand:
- /beacon-metrics-gazer
- http://teku-geth-001:5052
- --ranges-file
- /custom-config/ranges.yaml
- --port
- "8080"
- --address
- "0.0.0.0"

extraVolumes:
- name: custom-config
emptyDir: {}
extraVolumeMounts:
- name: custom-config
mountPath: "/custom-config"

initContainers:
- name: init-config
image: alpine:latest
imagePullPolicy: IfNotPresent
securityContext:
runAsNonRoot: false
runAsUser: 0
command:
- sh
- -ace
- >
apk update && apk add curl yq;
curl -s https://config.ssz-devnet-0.ethpandaops.io/api/v1/nodes/validator-ranges | yq '.ranges' -P > /custom-config/ranges.yaml;
echo "====== init done ======";
cat /custom-config/ranges.yaml;
volumeMounts:
- name: custom-config
mountPath: "/custom-config"
23 changes: 23 additions & 0 deletions kubernetes/devnet-0/blobscan/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
12 changes: 12 additions & 0 deletions kubernetes/devnet-0/blobscan/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
dependencies:
- name: blobscan
repository: https://blobscan.github.io/blobscan-helm-charts/
version: 0.2.12
- name: blobscan-api
repository: https://blobscan.github.io/blobscan-helm-charts/
version: 0.2.8
- name: blobscan-indexer
repository: https://blobscan.github.io/blobscan-helm-charts/
version: 0.2.9
digest: sha256:36c11a4ce747642ed93425fab1005c035b6ddf51a33f8379c6bf81285653ffac
generated: "2024-10-11T19:11:10.949036+02:00"
17 changes: 17 additions & 0 deletions kubernetes/devnet-0/blobscan/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Ansible managed. Don't change this file manually. Template info: /vendor/collections/ansible_collections/ethpandaops/general/roles/generate_kubernetes_config/templates/Chart.yaml.j2

apiVersion: v2
name: blobscan
description: A Helm chart for Kubernetes
type: application
version: 0.1.0
dependencies:
- name: blobscan
repository: https://blobscan.github.io/blobscan-helm-charts/
version: 0.2.12
- name: blobscan-api
repository: https://blobscan.github.io/blobscan-helm-charts/
version: 0.2.8
- name: blobscan-indexer
repository: https://blobscan.github.io/blobscan-helm-charts/
version: 0.2.9
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit f911434

Please sign in to comment.