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

Enode collector chart #113

Open
wants to merge 19 commits into
base: production
Choose a base branch
from
2 changes: 2 additions & 0 deletions charts/execution-beacon/templates/service-p2p.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ metadata:
spec:
type: {{ $.Values.global.p2pNodePort.type }}
externalTrafficPolicy: Local
publishNotReadyAddresses: true
ports:
- name: p2p-tcp-exec
port: {{ include "execution.p2pPort" $ }}
Expand Down Expand Up @@ -58,6 +59,7 @@ metadata:
spec:
type: {{ $.Values.global.p2pNodePort.type }}
externalTrafficPolicy: Local
publishNotReadyAddresses: true
ports:
- name: p2p-tcp-beacon
port: {{ include "beacon.p2pPort" $ }}
Expand Down
25 changes: 18 additions & 7 deletions charts/execution-beacon/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,18 @@ spec:
mountPath: /env
- name: scripts-init
mountPath: /scripts
{{/* Container used for collecting enodes needed for bootnodes */}}
- name: enode-collector
image: "{{ .Values.global.enodeCollectorImage.repository }}:{{ .Values.global.enodeCollectorImage.tag }}"
imagePullPolicy: {{ .Values.global.enodeCollectorImage.pullPolicy }}
env:
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
volumeMounts:
- name: env-nodeport
mountPath: /env
{{/* Container used for initialising nimbus checkpoint sync */}}
{{- if and (eq .Values.beacon.client "nimbus") .Values.beacon.checkPointSync.enabled }}
- name: init-nimbus
Expand Down Expand Up @@ -154,7 +166,6 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- if or .Values.global.JWTSecret .Values.global.externalSecrets.enabled }}
{{- if .Values.global.externalSecrets.enabled }}
--JsonRpc.JwtSecretFile=/external-secrets/JWT_SECRET
{{- else }}
Expand All @@ -163,7 +174,6 @@ spec:
--JsonRpc.EnginePort={{ .Values.execution.jsonrpc.engine.port }}
--JsonRpc.EngineHost={{ .Values.execution.jsonrpc.host }}
--JsonRpc.EngineEnabledModules={{ .Values.execution.jsonrpc.namespaces.nethermind | join "," }}
{{- end }}
{{- if and .Values.global.metrics.enabled .Values.execution.metrics.enabled }}
--Metrics.Enabled={{ .Values.execution.metrics.enabled }}
--Metrics.ExposePort={{ .Values.execution.metrics.port }}
Expand All @@ -186,10 +196,11 @@ spec:
{{- else if eq .Values.execution.client "geth" }}
exec geth
--syncmode=snap
--bootnodes=$BOOTNODES
--datadir=/data/execution
--ipcdisable
--{{ .Values.global.network }}
{{- if or .Values.global.JWTSecret .Values.global.externalSecrets.enabled }}
{{- if .Values.global.externalSecrets.enabled }}
--authrpc.jwtsecret=/external-secrets/JWT_SECRET
{{- else }}
--authrpc.jwtsecret=/secret/jwtsecret
Expand Down Expand Up @@ -235,7 +246,7 @@ spec:
--data-path=/data/execution
--sync-mode=X_SNAP
--p2p-enabled=true
{{- if or .Values.global.JWTSecret .Values.global.externalSecrets.enabled }}
{{- if .Values.global.externalSecrets.enabled }}
--engine-jwt-secret=/external-secrets/JWT_SECRET
{{- else }}
--engine-jwt-secret=/secret/jwtsecret
Expand Down Expand Up @@ -271,7 +282,7 @@ spec:
{{- if .Values.execution.terminalTotalDifficulty }}
--override.terminaltotaldifficulty={{ .Values.execution.terminalTotalDifficulty }}
{{- end }}
{{- if or .Values.global.JWTSecret .Values.global.externalSecrets.enabled }}
{{- if .Values.global.externalSecrets.enabled }}
--authrpc.jwtsecret=/external-secrets/JWT_SECRET
{{- else }}
--authrpc.jwtsecret=/secret/jwtsecret
Expand Down Expand Up @@ -340,14 +351,14 @@ spec:
- name: metrics-exec
containerPort: {{ .Values.execution.metrics.port }}
{{- end }}
{{- if .Values.global.p2pNodePort.enabled }}
{{- if .Values.global.p2pNodePort.enabled }}
- name: p2p-tcp-exec
containerPort: {{ include "execution.p2pPort" . }}
protocol: TCP
- name: p2p-udp-exec
containerPort: {{ include "execution.p2pPort" . }}
protocol: UDP
{{- end }}
{{- end }}
volumeMounts:
{{- if .Values.global.sharedPersistence.enabled }}
- name: data
Expand Down
11 changes: 10 additions & 1 deletion charts/execution-beacon/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,11 @@ global:
tag: "1.28"
pullPolicy: IfNotPresent

enodeCollectorImage:
repository: "nethermindeth/enode-collector"
tag: "1.0.0"
pullPolicy: IfNotPresent

## Monitoring
##
metrics:
Expand Down Expand Up @@ -321,17 +326,20 @@ execution:
- Net
- Subscribe
- Health
- Admin
geth:
- web3
- eth
- net
- engine
- admin
erigon:
- eth
- erigon
- web3
- net
- engine
- admin
host: "0.0.0.0"
grpc:
port: 9090
Expand Down Expand Up @@ -555,7 +563,8 @@ rbac:
- apiGroups: [""]
resources:
- "services"
- "endpoints"
verbs:
- "get"
- "list"
- "watch"
- "watch"