Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

feat: configure sequencer p2p to be exposable #143

Merged
merged 6 commits into from
Dec 20, 2023
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
2 changes: 1 addition & 1 deletion charts/sequencer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.8.1
version: 0.8.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
13 changes: 11 additions & 2 deletions charts/sequencer/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,20 @@ metadata:
name: {{ .Values.config.moniker }}-sequencer-p2p-service
namespace: {{ .Values.global.namespace }}
spec:
type: NodePort
selector:
app: {{ .Values.config.moniker }}-sequencer
ports:
- name: cometbft-p2p
targetPort: cometbft-p2p
{{- if and .Values.config.cometBFT.p2p.externalAddress (not .Values.ingress.p2p.enabled)}}
{{- $parsedExternal := splitList ":" .Values.config.cometBFT.p2p.externalAddress }}
{{- $externalAddress := index $parsedExternal 0 }}
{{- $externalPort := index $parsedExternal 1 }}
port: {{ $externalPort }}
type: LoadBalancer
loadBalancerIP: {{ $externalAddress }}
{{- else }}
port: {{ .Values.ports.cometBFTP2P }}
name: cometbft-p2p
type: NodePort
{{- end }}
---