diff --git a/charts/reth/templates/configmap.yaml b/charts/reth/templates/configmap.yaml new file mode 100644 index 00000000..dc4651d6 --- /dev/null +++ b/charts/reth/templates/configmap.yaml @@ -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 }} diff --git a/charts/reth/templates/statefulset.yaml b/charts/reth/templates/statefulset.yaml index 768050b7..e560b008 100644 --- a/charts/reth/templates/statefulset.yaml +++ b/charts/reth/templates/statefulset.yaml @@ -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}} @@ -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 }} diff --git a/charts/reth/values.yaml b/charts/reth/values.yaml index 8738e7f8..687aee15 100644 --- a/charts/reth/values.yaml +++ b/charts/reth/values.yaml @@ -343,3 +343,7 @@ serviceMonitor: scrapeTimeout: 30s # -- ServiceMonitor relabelings relabelings: [] + +# specify a custom config.toml +# see: https://reth.rs/run/config.html +#config: |