Skip to content

Commit

Permalink
feat: add configmap for config.toml to configure more reth settings
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuspod committed Jun 11, 2024
1 parent e472e1a commit 7a50579
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
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 }}
6 changes: 6 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
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: |

0 comments on commit 7a50579

Please sign in to comment.