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: add panda-pulse #302

Merged
merged 7 commits into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 11 additions & 0 deletions roles/generate_kubernetes_config/defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ gen_kubernetes_config_helm_repositories: # noqa var-naming[no-role-prefix]
url: https://blockscout.github.io/helm-charts
- name: bitnami
url: https://charts.bitnami.com/bitnami
- name: ethpandaops-general-helm-charts
url: https://ethpandaops.github.io/general-helm-charts

gen_kubernetes_config_ethereum_node_name: >- # noqa var-naming[no-role-prefix] yaml[line-length]
{{ gen_kubernetes_config_ethereum_node.cl }}-{{ gen_kubernetes_config_ethereum_node.el }}-{{ gen_kubernetes_config_ethereum_node.value }}
Expand All @@ -43,6 +45,9 @@ gen_kubernetes_config_dora_frontend_public_rpc: "https://rpc.{{ network_subdomai
gen_kubernetes_config_dora_frontend_with_submit_deposits: true # noqa var-naming[no-role-prefix]
gen_kubernetes_config_dora_frontend_with_submit_el_requests: true # noqa var-naming[no-role-prefix]

gen_kubernetes_config_panda_pulse_discord_channel: "1207978750004690974" # noqa var-naming[no-role-prefix]
gen_kubernetes_config_panda_pulse_schedule: "0 7 * * *" # noqa var-naming[no-role-prefix]

gen_kubernetes_config_helm_charts: # noqa var-naming[no-role-prefix]
config:
valuesTemplatePath: templates/config.yaml.j2
Expand Down Expand Up @@ -153,3 +158,9 @@ gen_kubernetes_config_helm_charts: # noqa var-naming[no-role-prefix]
- name: erpc
repository: https://ethpandaops.github.io/ethereum-helm-charts
version: 0.0.2
panda-pulse:
valuesTemplatePath: templates/panda-pulse.yaml.j2
dependencies:
- name: panda-pulse
repository: https://ethpandaops.github.io/general-helm-charts
version: 0.0.2
34 changes: 34 additions & 0 deletions roles/generate_kubernetes_config/templates/panda-pulse.yaml.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# {{ ansible_managed }}

panda-pulse:
fullnameOverride: "panda-pulse"

image:
repository: {{ default_tooling_images.panda_pulse.split(':') | first }}
tag: {{ default_tooling_images.panda_pulse.split(':') | last }}
pullPolicy: {% if "latest" in (default_tooling_images.panda_pulse.split(':') | last) %}Always{% else %}IfNotPresent{% endif %}

schedule: "{{ gen_kubernetes_config_panda_pulse_schedule }}"

config:
network: "{{ ethereum_network_name }}"
discordChannel: "{{ gen_kubernetes_config_panda_pulse_discord_channel }}"
ethereumCls:
{% for group in groups | select('match', '^(lighthouse|lodestar|nimbus|teku|prysm|grandine)$') %} - {{ group }}
{% endfor %}
ethereumEls:
{% for group in groups | select('match', '^(besu|ethereumjs|geth|nethermind|erigon|reth|nimbusel)$') %} - {{ group }}
{% endfor %}

secrets:
grafanaServiceToken: "<path:/secrets/services/services.enc.yaml#panda-pulse | jsonPath {.grafana_service_token}>"
discordBotToken: "<path:/secrets/services/services.enc.yaml#panda-pulse | jsonPath {.discord_bot_token}>"
openrouterApiKey: "<path:/secrets/services/services.enc.yaml#panda-pulse | jsonPath {.openrouter_api_key}>"

resources:
limits:
cpu: 1000m
memory: 1Gi
requests:
cpu: 100m
memory: 128Mi
Loading