Skip to content

Commit

Permalink
add kubes
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabasbusa committed Sep 24, 2024
1 parent 2e4c6e3 commit 085543a
Show file tree
Hide file tree
Showing 101 changed files with 69,445 additions and 66,659 deletions.
6 changes: 6 additions & 0 deletions ansible/inventories/devnet-2/group_vars/all/images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,9 @@ default_tooling_images:
dora: ethpandaops/dora:peerdas-as-deneb-column-view-latest
dugtrio: ethpandaops/dugtrio:latest
ethereum_genesis_generator: ethpandaops/ethereum-genesis-generator:3.3.7
tracoor: ethpandaops/tracoor:0.0.25-debian
ncli: status-im/nimbus-eth2:unstable
lcli: ethpandaops/lighthouse:unstable-a94b12blo
zcli: electra
assertoor: ethpandaops/assertoor:electra-support-latest

1 change: 0 additions & 1 deletion ansible/inventories/devnet-2/group_vars/bootnode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ lighthouse_container_volumes:
lighthouse_container_command_extra_args:
- --testnet-dir=/network-config
- --allow-insecure-genesis-sync
- --subscribe-all-data-column-subnets

# role: ethpandaops.general.geth
geth_container_name: execution
Expand Down
4 changes: 2 additions & 2 deletions ansible/inventories/devnet-2/group_vars/goomy.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

goomy_container_networks: "{{ docker_networks_shared }}"
goomy_rpc_urls:
- "{% for host in groups['execution_node_without_besu'] %}https://{{ secret_nginx_shared_basic_auth.name }}:{{ secret_nginx_shared_basic_auth.password }}@rpc.{{ host }}.{{ network_subdomain }},{% endfor %}"
- "{% for host in groups['execution_node'] %}https://{{ secret_nginx_shared_basic_auth.name }}:{{ secret_nginx_shared_basic_auth.password }}@rpc.{{ host }}.{{ network_subdomain }},{% endfor %}"
goomy_scenario: "combined"
goomy_extra_args: ["--sidecars", "1", "--throughput", "3", "--max-pending", "20"]
goomy_extra_args: ["--sidecars", "1", "--throughput", "2", "--max-pending", "20"]
1 change: 0 additions & 1 deletion ansible/inventories/devnet-2/group_vars/lighthouse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ lighthouse_container_command_extra_args:
- --testnet-dir=/network-config
- --boot-nodes={{ ethereum_cl_bootnodes | join(',') }}
- --allow-insecure-genesis-sync
- --subscribe-all-data-column-subnets
#- --disable-inbound-rate-limiter
lighthouse_validator_container_volumes:
- "{{ lighthouse_validator_datadir }}:/validator-data"
Expand Down
3 changes: 1 addition & 2 deletions ansible/inventories/devnet-2/group_vars/lodestar.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# role: ethpandaops.general.bootstrap
bootstrap_default_user_authorized_keys_github_team_cl:
- dapplion
- wemeetagain
- tuyennhv
- twoeths
- g11tech
- philknows
- nazarhussain
Expand Down
1 change: 0 additions & 1 deletion ansible/inventories/devnet-2/group_vars/prysm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ prysm_container_command_extra_simple_args:
- --pprof
- --enable-debug-rpc-endpoints
- --verbosity=debug
- --subscribe-all-subnets
prysm_container_command_extra_bootnode_args: >-
{{ ethereum_cl_bootnodes | map('regex_replace', '^', '--bootstrap-node=') | list }}
Expand Down
2 changes: 0 additions & 2 deletions ansible/inventories/devnet-2/group_vars/teku.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ teku_container_command_extra_args:
- --Xlog-include-p2p-warnings-enabled
- --metrics-block-timing-tracking-enabled
- --ignore-weak-subjectivity-period-enabled
- --p2p-subscribe-all-custody-subnets-enabled
teku_validator_container_volumes:
- "{{ teku_validator_datadir }}:/validator-data"
- "{{ eth_testnet_config_dir }}:/network-config:ro"
teku_validator_datadir: /data/teku-validator
5 changes: 4 additions & 1 deletion ansible/inventories/devnet-2/inventory.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ localhost
ethereum_network_name=peerdas-devnet-2

[bootnode]
bootnode-1 ansible_host=134.122.31.188 ipv6=2604:a880:400:d1::1d7a:5001 cloud=digitalocean cloud_region=nyc1 ethereum_node_cl_supernode_enabled=true
bootnode-1 ansible_host=134.122.31.188 ipv6=2604:a880:400:d1::1d7a:5001 cloud=digitalocean cloud_region=nyc1 ethereum_node_cl_supernode_enabled=true

[grandine_geth]
grandine-geth-1 ansible_host=24.199.80.42 ipv6=2604:a880:400:d1::1d7a:2001 cloud=digitalocean cloud_region=nyc1 ethereum_node_cl_supernode_enabled=true validator_start=3000 validator_end=3100
Expand Down Expand Up @@ -101,3 +101,6 @@ geth
[ethereum_node:children]
consensus_node
execution_node

[goomy:children]
bootnode
189 changes: 92 additions & 97 deletions ansible/playbook.yaml
Original file line number Diff line number Diff line change
@@ -1,107 +1,102 @@
- hosts: localhost
roles:
- role: ethpandaops.general.ethereum_genesis
tags: [ethereum_genesis]
# - hosts: localhost
# roles:
# - role: ethpandaops.general.ethereum_genesis
# tags: [ethereum_genesis]

- import_playbook: ethpandaops.general.bootstrap_server
vars:
target: "all:!localhost"
tags: [init-server, bootstrap]
# - import_playbook: ethpandaops.general.bootstrap_server
# vars:
# target: "all:!localhost"
# tags: [init-server, bootstrap]

- hosts: all:!localhost
serial: "{{ batch_count | default('100%') }}"
become: true
roles:
# - role: robertdebock.fail2ban
# tags: [init-server, fail2ban]
- role: geerlingguy.docker
tags: [init-server, docker]
- role: geerlingguy.pip
pip_install_packages:
- name: docker
tags: [init-server, pip]
- role: ethpandaops.general.docker_cleanup
tags: [init-server, docker_cleanup]
- role: ethpandaops.general.docker_network
tags: [init-server, docker_network]
- role: ethpandaops.general.node_exporter
tags: [init-server, node_exporter]
- role: ethpandaops.general.prometheus
tags: [init-server, prometheus]
- role: ethpandaops.general.vector
tags: [init-server, vector]
# - hosts: all:!localhost
# serial: "{{ batch_count | default('100%') }}"
# become: true
# roles:
# # - role: robertdebock.fail2ban
# # tags: [init-server, fail2ban]
# - role: geerlingguy.docker
# tags: [init-server, docker]
# - role: geerlingguy.pip
# pip_install_packages:
# - name: docker
# tags: [init-server, pip]
# - role: ethpandaops.general.docker_cleanup
# tags: [init-server, docker_cleanup]
# - role: ethpandaops.general.docker_network
# tags: [init-server, docker_network]
# - role: ethpandaops.general.node_exporter
# tags: [init-server, node_exporter]
# - role: ethpandaops.general.prometheus
# tags: [init-server, prometheus]
# - role: ethpandaops.general.vector
# tags: [init-server, vector]

- hosts: bootnode
become: true
roles:
- role: ethpandaops.general.cl_bootnode
tags: [cl_bootnode]
- role: ethpandaops.general.ethereum_testnet_config
tags: [ethereum, eth_testnet_config, ethereum_testnet_config]
- role: ethpandaops.general.ethereum_node
tags: [ethereum, ethereum_node]
- role: ethpandaops.general.docker_nginx_proxy
tags: [docker_nginx_proxy]
- role: ethpandaops.general.generate_basic_auth_nginx
tags: [docker_nginx_proxy]
# - hosts: bootnode
# become: true
# roles:
# - role: ethpandaops.general.cl_bootnode
# tags: [cl_bootnode]
# - role: ethpandaops.general.ethereum_testnet_config
# tags: [ethereum, eth_testnet_config, ethereum_testnet_config]
# - role: ethpandaops.general.ethereum_node
# tags: [ethereum, ethereum_node]
# - role: ethpandaops.general.docker_nginx_proxy
# tags: [docker_nginx_proxy]
# - role: ethpandaops.general.generate_basic_auth_nginx
# tags: [docker_nginx_proxy]

- hosts: ethereum_node
serial: "{{ batch_count | default('100%') }}"
become: true
roles:
- role: ethpandaops.general.ethereum_testnet_config
tags: [ethereum, eth_testnet_config, ethereum_testnet_config]
- role: ethpandaops.general.validator_keys
when: ethereum_node_cl_validator_enabled == true
tags: [ethereum, validator_keys]
- role: ethpandaops.general.ethereum_node
tags: [ethereum, ethereum_node]
- role: ethpandaops.general.docker_nginx_proxy
tags: [docker_nginx_proxy]
- role: ethpandaops.general.generate_basic_auth_nginx
tags: [docker_nginx_proxy]
post_tasks:
- name: Wait between runs
tags: [ethereum, ethereum_node]
ansible.builtin.pause:
seconds: >-
{{
batch_count is defined | ternary(
(batch_wait_seconds | default(30)),
0
)
}}
# - hosts: ethereum_node
# serial: "{{ batch_count | default('100%') }}"
# become: true
# roles:
# - role: ethpandaops.general.ethereum_testnet_config
# tags: [ethereum, eth_testnet_config, ethereum_testnet_config]
# - role: ethpandaops.general.validator_keys
# when: ethereum_node_cl_validator_enabled == true
# tags: [ethereum, validator_keys]
# - role: ethpandaops.general.ethereum_node
# tags: [ethereum, ethereum_node]
# - role: ethpandaops.general.docker_nginx_proxy
# tags: [docker_nginx_proxy]
# - role: ethpandaops.general.generate_basic_auth_nginx
# tags: [docker_nginx_proxy]
# post_tasks:
# - name: Wait between runs
# tags: [ethereum, ethereum_node]
# ansible.builtin.pause:
# seconds: >-
# {{
# batch_count is defined | ternary(
# (batch_wait_seconds | default(30)),
# 0
# )
# }}

- hosts: tx_fuzz_blobs
become: true
roles:
- role: ethpandaops.general.tx_fuzz
tags: [tx_fuzz, tx_fuzz_blobs]
vars:
tx_fuzz_container_name: "{{ tx_fuzz_blobs_container_name }}"
tx_fuzz_container_command: "{{ tx_fuzz_blobs_container_command }}"
tx_fuzz_container_image: "{{ tx_fuzz_blobs_container_image }}"
- hosts: tx_fuzz_txs
become: true
roles:
- role: ethpandaops.general.tx_fuzz
tags: [tx_fuzz, tx_fuzz_txs]
vars:
tx_fuzz_container_name: "{{ tx_fuzz_txs_container_name }}"
tx_fuzz_container_command: "{{ tx_fuzz_txs_container_command }}"
tx_fuzz_container_image: "{{ tx_fuzz_txs_container_image }}"
# - hosts: tx_fuzz_blobs
# become: true
# roles:
# - role: ethpandaops.general.tx_fuzz
# tags: [tx_fuzz, tx_fuzz_blobs]
# vars:
# tx_fuzz_container_name: "{{ tx_fuzz_blobs_container_name }}"
# tx_fuzz_container_command: "{{ tx_fuzz_blobs_container_command }}"
# tx_fuzz_container_image: "{{ tx_fuzz_blobs_container_image }}"
# - hosts: tx_fuzz_txs
# become: true
# roles:
# - role: ethpandaops.general.tx_fuzz
# tags: [tx_fuzz, tx_fuzz_txs]
# vars:
# tx_fuzz_container_name: "{{ tx_fuzz_txs_container_name }}"
# tx_fuzz_container_command: "{{ tx_fuzz_txs_container_command }}"
# tx_fuzz_container_image: "{{ tx_fuzz_txs_container_image }}"

- hosts: bootnode
become: true
roles:
- role: ethpandaops.general.ethereum_inventory_web
tags: [eth_inventory_web, ethereum_inventory_web]
# - hosts: bootnode
# become: true
# roles:
# - role: ethpandaops.general.ethereum_inventory_web
# tags: [eth_inventory_web, ethereum_inventory_web]

- hosts: dora
become: true
roles:
- role: ethpandaops.general.dora
tags: [dora]


- hosts: goomy
Expand Down
2 changes: 1 addition & 1 deletion ansible/requirements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ roles:
- name: geerlingguy.firewall
version: "2.5.0"
- src: geerlingguy.pip
version: "2.2.0"
version: "3.0.3"
- name: robertdebock.fail2ban
version: "4.2.3"

Expand Down
23 changes: 23 additions & 0 deletions kubernetes/devnet-2/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-2/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: 0.0.4
digest: sha256:8fecfd165f67243c9cdcdb8e7d1243aa9e51fcdf121a06773a5a0c386021d1c4
generated: "2024-09-24T17:15:21.090354+02:00"
11 changes: 11 additions & 0 deletions kubernetes/devnet-2/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: 0.0.4
Binary file not shown.
Loading

0 comments on commit 085543a

Please sign in to comment.