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 12, 2024
1 parent e472e1a commit 1296c79
Show file tree
Hide file tree
Showing 3 changed files with 26 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 }}
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: |

0 comments on commit 1296c79

Please sign in to comment.