Skip to content

Commit

Permalink
feat: add sidecards and initContainers support
Browse files Browse the repository at this point in the history
  • Loading branch information
cjorge-graphops committed Nov 21, 2024
1 parent aad82e5 commit f082d7f
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions charts/erigon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}` |
Expand Down
6 changes: 6 additions & 0 deletions charts/erigon/templates/stateful-node/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down Expand Up @@ -275,6 +278,9 @@ spec:
resources:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with $values.extraContainers }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with $values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
5 changes: 5 additions & 0 deletions charts/erigon/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions charts/nimbus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"` |
Expand Down
6 changes: 6 additions & 0 deletions charts/nimbus/templates/nimbus/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down Expand Up @@ -275,6 +278,9 @@ spec:
resources:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with $values.extraContainers }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with $values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
5 changes: 5 additions & 0 deletions charts/nimbus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: []

0 comments on commit f082d7f

Please sign in to comment.