Skip to content

Commit

Permalink
update relaunch
Browse files Browse the repository at this point in the history
  • Loading branch information
parithosh committed May 17, 2024
1 parent f4d64aa commit 1c52e6a
Show file tree
Hide file tree
Showing 78 changed files with 121,395 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ansible/inventories/devnet-0/group_vars/all/all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ethereum_genesis_generator_version: "{{ ethereum_genesis_generator_container_ima
ethereum_genesis_network_seed: "{{ ansible_inventory_sources[0] }}"
ethereum_genesis_chain_id: "7011893080"
ethereum_genesis_generator_output_dir: "../network-configs/{{ ethereum_network_name | replace('pectra-', '') }}"
ethereum_genesis_timestamp: "1715931000"
ethereum_genesis_timestamp: "1715934300"
ethereum_genesis_timedelay: 60
#ethereum_genesis_timestamp_relative_cmd:
# Linux: "date +%s -d '+45 minutes'"
Expand All @@ -57,7 +57,7 @@ ethereum_genesis_generator_config_files:
export EL_AND_CL_MNEMONIC="{{ ethereum_genesis_mnemonic }}"
export CL_EXEC_BLOCK="0"
export DEPOSIT_CONTRACT_BLOCK="0x0000000000000000000000000000000000000000000000000000000000000000"
export NUMBER_OF_VALIDATORS=2500
export NUMBER_OF_VALIDATORS=1700
export GENESIS_FORK_VERSION="0x10{{ ethereum_genesis_fork_version_suffix }}"
export ALTAIR_FORK_VERSION="0x20{{ ethereum_genesis_fork_version_suffix }}"
export BELLATRIX_FORK_VERSION="0x30{{ ethereum_genesis_fork_version_suffix }}"
Expand Down
2 changes: 1 addition & 1 deletion 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: ethpandaops/lighthouse:ef-tests-electra-b5333b4
lodestar: ethpandaops/lodestar:pectra-devnet-0-764bcc8
nimbus: ethpandaops/nimbus-eth2:unstable
nimbus: ethpandaops/nimbus-eth2:pectra-99a42e8
prysm: ethpandaops/prysm-beacon-chain:electra-devnet0-daad61b
prysm_validator: ethpandaops/prysm-validator:electra-devnet0-daad61b
teku: ethpandaops/teku:master-8f4e64a
Expand Down
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-05-17T11:09:35.52656+03: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: "pectra-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.pectra-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/checkpointz/.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/checkpointz/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: checkpointz
repository: https://ethpandaops.github.io/ethereum-helm-charts
version: 0.1.3
digest: sha256:9eceb3eb5bb940e21ad6256c1258227069c421ccb29cae6c09005783826cece4
generated: "2024-05-17T11:14:06.294236+03:00"
11 changes: 11 additions & 0 deletions kubernetes/devnet-0/checkpointz/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: checkpointz
description: A Helm chart for Kubernetes
type: application
version: 0.1.0
dependencies:
- name: checkpointz
repository: https://ethpandaops.github.io/ethereum-helm-charts
version: 0.1.3
Binary file not shown.
101 changes: 101 additions & 0 deletions kubernetes/devnet-0/checkpointz/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
# Ansible managed. Don't change this file manually. Template info: /vendor/collections/ansible_collections/ethpandaops/general/roles/generate_kubernetes_config/templates/checkpointz.yaml.j2

checkpointz:
fullnameOverride: checkpointz
replicas: 1

image:
repository: ethpandaops/checkpointz
tag: latest
pullPolicy: Always
resources:
requests:
cpu: 64m
memory: 256Mi
ingress:
enabled: true
className: ingress-nginx-public
annotations:
cert-manager.io/cluster-issuer: letsencrypt-production
hosts:
- host: checkpoint-sync.pectra-devnet-0.ethpandaops.io
paths:
- path: /
pathType: Prefix

tls:
- hosts:
- checkpoint-sync.pectra-devnet-0.ethpandaops.io
secretName: pectra-devnet-0-checkpoint-sync-tls

config:
global:
listenAddr: ":5555"
logging: "info" # panic,fatal,warm,info,debug,trace
metricsAddr: ":9090"

checkpointz:
mode: full
caches:
blocks:
max_items: 100
states:
max_items: 5
historical_epoch_count: 20

beacon:
upstreams:
- name: rpc-teku-geth-001
address: http://teku-geth-001:5052
dataProvider: true
- name: bootnode-1
address: https://<path:/secrets/services/services.enc.yaml#ethereum | jsonPath {.testnets.pectra-devnets.node_ingress.combined}>@bn.bootnode-1.pectra-devnet-0.ethpandaops.io
dataProvider: true
- name: grandine-besu-1
address: https://<path:/secrets/services/services.enc.yaml#ethereum | jsonPath {.testnets.pectra-devnets.node_ingress.combined}>@bn.grandine-besu-1.pectra-devnet-0.ethpandaops.io
dataProvider: true
- name: grandine-geth-1
address: https://<path:/secrets/services/services.enc.yaml#ethereum | jsonPath {.testnets.pectra-devnets.node_ingress.combined}>@bn.grandine-geth-1.pectra-devnet-0.ethpandaops.io
dataProvider: true
- name: grandine-nethermind-1
address: https://<path:/secrets/services/services.enc.yaml#ethereum | jsonPath {.testnets.pectra-devnets.node_ingress.combined}>@bn.grandine-nethermind-1.pectra-devnet-0.ethpandaops.io
dataProvider: true
- name: lighthouse-besu-1
address: https://<path:/secrets/services/services.enc.yaml#ethereum | jsonPath {.testnets.pectra-devnets.node_ingress.combined}>@bn.lighthouse-besu-1.pectra-devnet-0.ethpandaops.io
dataProvider: true
- name: lighthouse-ethereumjs-1
address: https://<path:/secrets/services/services.enc.yaml#ethereum | jsonPath {.testnets.pectra-devnets.node_ingress.combined}>@bn.lighthouse-ethereumjs-1.pectra-devnet-0.ethpandaops.io
dataProvider: true
- name: lighthouse-geth-1
address: https://<path:/secrets/services/services.enc.yaml#ethereum | jsonPath {.testnets.pectra-devnets.node_ingress.combined}>@bn.lighthouse-geth-1.pectra-devnet-0.ethpandaops.io
dataProvider: true
- name: lighthouse-nethermind-1
address: https://<path:/secrets/services/services.enc.yaml#ethereum | jsonPath {.testnets.pectra-devnets.node_ingress.combined}>@bn.lighthouse-nethermind-1.pectra-devnet-0.ethpandaops.io
dataProvider: true
- name: lighthouse-reth-1
address: https://<path:/secrets/services/services.enc.yaml#ethereum | jsonPath {.testnets.pectra-devnets.node_ingress.combined}>@bn.lighthouse-reth-1.pectra-devnet-0.ethpandaops.io
dataProvider: true
- name: lodestar-geth-1
address: https://<path:/secrets/services/services.enc.yaml#ethereum | jsonPath {.testnets.pectra-devnets.node_ingress.combined}>@bn.lodestar-geth-1.pectra-devnet-0.ethpandaops.io
dataProvider: true
- name: nimbus-geth-1
address: https://<path:/secrets/services/services.enc.yaml#ethereum | jsonPath {.testnets.pectra-devnets.node_ingress.combined}>@bn.nimbus-geth-1.pectra-devnet-0.ethpandaops.io
dataProvider: true
- name: prysm-besu-1
address: https://<path:/secrets/services/services.enc.yaml#ethereum | jsonPath {.testnets.pectra-devnets.node_ingress.combined}>@bn.prysm-besu-1.pectra-devnet-0.ethpandaops.io
dataProvider: true
- name: prysm-geth-1
address: https://<path:/secrets/services/services.enc.yaml#ethereum | jsonPath {.testnets.pectra-devnets.node_ingress.combined}>@bn.prysm-geth-1.pectra-devnet-0.ethpandaops.io
dataProvider: true
- name: prysm-nethermind-1
address: https://<path:/secrets/services/services.enc.yaml#ethereum | jsonPath {.testnets.pectra-devnets.node_ingress.combined}>@bn.prysm-nethermind-1.pectra-devnet-0.ethpandaops.io
dataProvider: true
- name: teku-besu-1
address: https://<path:/secrets/services/services.enc.yaml#ethereum | jsonPath {.testnets.pectra-devnets.node_ingress.combined}>@bn.teku-besu-1.pectra-devnet-0.ethpandaops.io
dataProvider: true
- name: teku-geth-1
address: https://<path:/secrets/services/services.enc.yaml#ethereum | jsonPath {.testnets.pectra-devnets.node_ingress.combined}>@bn.teku-geth-1.pectra-devnet-0.ethpandaops.io
dataProvider: true
- name: teku-nethermind-1
address: https://<path:/secrets/services/services.enc.yaml#ethereum | jsonPath {.testnets.pectra-devnets.node_ingress.combined}>@bn.teku-nethermind-1.pectra-devnet-0.ethpandaops.io
dataProvider: true
23 changes: 23 additions & 0 deletions kubernetes/devnet-0/config/.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/
7 changes: 7 additions & 0 deletions kubernetes/devnet-0/config/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# 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: config
description: A Helm chart for Kubernetes
type: application
version: 0.1.0
43 changes: 43 additions & 0 deletions kubernetes/devnet-0/config/templates/ingress.config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{{- if .Values.config.enabled }}
{{- $uniqueUpstreams := dict }}
{{- range .Values.config.files }}
{{- $uniqueUpstreams = set $uniqueUpstreams .upstream "" }}
{{- end }}

{{- range keys $uniqueUpstreams }}
---
kind: Service
apiVersion: v1
metadata:
name: external-{{ . | replace "." "-" | lower | trunc 63 }}
spec:
type: ExternalName
externalName: {{ . }}
{{- end }}

{{- range .Values.config.files }}
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress-config-{{ .path | replace "/" "-" | replace "." "-" | replace "_" "-" | lower }}
annotations:
kubernetes.io/ingress.class: ingress-nginx-public
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
nginx.ingress.kubernetes.io/upstream-vhost: "{{ .upstream }}"
nginx.ingress.kubernetes.io/rewrite-target: "{{ .target }}"
spec:
rules:
- host: "config.{{ $.Values.domain }}"
http:
paths:
- path: {{ .path }}
pathType: Exact
backend:
service:
name: external-{{ .upstream | replace "." "-" | lower | trunc 63 }}
port:
number: 443
{{- end }}
{{- end }}
Loading

0 comments on commit 1c52e6a

Please sign in to comment.