From 1296c7919bf1e2c30389fcd739c6584a04e26c41 Mon Sep 17 00:00:00 2001 From: mariuspod <14898268+mariuspod@users.noreply.github.com> Date: Tue, 11 Jun 2024 19:32:59 +0200 Subject: [PATCH] feat: add configmap for config.toml to configure more reth settings --- charts/reth/templates/configmap.yaml | 11 +++++++++++ charts/reth/templates/statefulset.yaml | 11 +++++++++++ charts/reth/values.yaml | 4 ++++ 3 files changed, 26 insertions(+) create mode 100644 charts/reth/templates/configmap.yaml 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: |