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 configmap for config.toml to configure more reth settings #312

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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 charts/reth/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{- if .Values.config }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "reth.fullname" . }}-configmap
labels:
{{- include "reth.labels" . | nindent 4 }}
data:
config.toml: |
{{- tpl .Values.config . | nindent 4 }}
{{- end }}
11 changes: 11 additions & 0 deletions charts/reth/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ spec:
mountPath: "/data/jwt.hex"
subPath: jwt.hex
readOnly: true
{{- if .Values.config }}
- name: config
mountPath: "/data/config.toml"
subPath: config.toml
readOnly: true
{{- end }}
ports:
{{- if .Values.extraContainerPorts }}
{{ toYaml .Values.extraContainerPorts | nindent 12}}
Expand Down Expand Up @@ -174,6 +180,11 @@ spec:
- name: env-nodeport
emptyDir: {}
{{- end }}
{{- if .Values.config }}
- name: config
configMap:
name: {{ include "reth.fullname" . }}-configmap
{{- end }}
{{- if .Values.extraVolumes }}
{{ toYaml .Values.extraVolumes | nindent 8}}
{{- end }}
Expand Down
4 changes: 4 additions & 0 deletions charts/reth/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -343,3 +343,7 @@ serviceMonitor:
scrapeTimeout: 30s
# -- ServiceMonitor relabelings
relabelings: []

# specify a custom config.toml
# see: https://reth.rs/run/config.html
#config: |
Loading