diff --git a/charts/erigon/README.md b/charts/erigon/README.md index 895cc6f7..20bce857 100644 --- a/charts/erigon/README.md +++ b/charts/erigon/README.md @@ -161,6 +161,8 @@ We do not recommend that you upgrade the application by overriding `image.tag`. | statefulNode.affinity | | object | `{}` | | statefulNode.affinityPresets.antiAffinityByHostname | Configure anti-affinity rules to prevent multiple Erigon instances on the same host | bool | `true` | | statefulNode.extraArgs | Additional CLI arguments to pass to `erigon` | list | `[]` | + | statefulNode.extraContainers | Additional containers to inject to this graph node group - an array of Container objects | list | `[]` | + | statefulNode.extraInitContainers | Additional init containers to inject to this graph node group - an array of Container objects | list | `[]` | | statefulNode.extraLabels | Extra labels to attach to the Pod for matching against | object | `{}` | | statefulNode.jwt | JWT for clients to authenticate with the Engine API. Specify either `existingSecret` OR `fromLiteral`. | object | `{"existingSecret":{"key":null,"name":null},"fromLiteral":null}` | | statefulNode.jwt.existingSecret | Load the JWT from an existing Kubernetes Secret. Takes precedence over `fromLiteral` if set. | object | `{"key":null,"name":null}` | diff --git a/charts/erigon/templates/stateful-node/statefulset.yaml b/charts/erigon/templates/stateful-node/statefulset.yaml index 8a3ccb9c..b0ffa91f 100644 --- a/charts/erigon/templates/stateful-node/statefulset.yaml +++ b/charts/erigon/templates/stateful-node/statefulset.yaml @@ -171,6 +171,9 @@ spec: - name: env-nodeport mountPath: /env {{- end }} + {{- with $values.extraInitContainers }} + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: {{ $componentName }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" @@ -275,6 +278,9 @@ spec: resources: {{- toYaml . | nindent 12 }} {{- end }} + {{- with $values.extraContainers }} + {{- toYaml . | nindent 8 }} + {{- end }} {{- with $values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/charts/erigon/values.yaml b/charts/erigon/values.yaml index a05f2f5c..e8ce0762 100644 --- a/charts/erigon/values.yaml +++ b/charts/erigon/values.yaml @@ -191,6 +191,11 @@ statefulNode: # -- Container pull policy pullPolicy: IfNotPresent + # -- Additional init containers to inject to this graph node group - an array of Container objects + extraInitContainers: [] + # -- Additional containers to inject to this graph node group - an array of Container objects + extraContainers: [] + rpcdaemon: # -- Enable a Deployment of rpcdaemon that can be scaled independently enabled: true diff --git a/charts/nimbus/README.md b/charts/nimbus/README.md index efd5d965..77f9ec3c 100644 --- a/charts/nimbus/README.md +++ b/charts/nimbus/README.md @@ -109,6 +109,8 @@ We do not recommend that you upgrade the application by overriding `image.tag`. | nimbus.affinityPresets.antiAffinityByHostname | Configure anti-affinity rules to prevent multiple instances on the same host | bool | `true` | | nimbus.executionClientUrl | URL to the Execution Client Engine API. Will use configured JWT to authenticate. | string | `""` | | nimbus.extraArgs | Additional CLI arguments | list | `[]` | + | nimbus.extraContainers | Additional containers to inject to this graph node group - an array of Container objects | list | `[]` | + | nimbus.extraInitContainers | Additional init containers to inject to this graph node group - an array of Container objects | list | `[]` | | nimbus.extraLabels | Extra labels to attach to the Pod for matching against | object | `{}` | | nimbus.initChownData.enabled | Init container to set the correct permissions to access data directories | bool | `true` | | nimbus.initChownData.image.pullPolicy | Container pull policy | string | `"IfNotPresent"` | diff --git a/charts/nimbus/templates/nimbus/statefulset.yaml b/charts/nimbus/templates/nimbus/statefulset.yaml index 6fd8d754..87f0f740 100644 --- a/charts/nimbus/templates/nimbus/statefulset.yaml +++ b/charts/nimbus/templates/nimbus/statefulset.yaml @@ -185,6 +185,9 @@ spec: - name: tmp mountPath: /tmp {{- end }} + {{- with $values.extraInitContainers }} + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: {{ $componentName }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" @@ -275,6 +278,9 @@ spec: resources: {{- toYaml . | nindent 12 }} {{- end }} + {{- with $values.extraContainers }} + {{- toYaml . | nindent 8 }} + {{- end }} {{- with $values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/charts/nimbus/values.yaml b/charts/nimbus/values.yaml index a9099ee1..5040e88b 100644 --- a/charts/nimbus/values.yaml +++ b/charts/nimbus/values.yaml @@ -199,3 +199,8 @@ nimbus: tag: "1.37.0" # -- Container pull policy pullPolicy: IfNotPresent + + # -- Additional init containers to inject to this graph node group - an array of Container objects + extraInitContainers: [] + # -- Additional containers to inject to this graph node group - an array of Container objects + extraContainers: []