Skip to content

Commit

Permalink
[agave] add extraInitContainers, sidecarContainers
Browse files Browse the repository at this point in the history
  • Loading branch information
VladStarr committed Jan 6, 2025
1 parent fe0776e commit b837c99
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dysnix/agave/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: agave
description: Agave (previously Solana) blockchain node Helm chart
type: application

version: 0.2.0
version: 0.2.1
appVersion: v2.0.21

keywords:
Expand Down
5 changes: 3 additions & 2 deletions dysnix/agave/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ A Helm chart to deploy Agave node inside Kubernetes cluster.

| Name | Description | Value |
| --------------------------------- | ---------------------------------------------------- | ----------------------------- |
| `replicaCount` | Number of pods to deploy in the Stateful Set | `1` |
| `image.repository` | Agave image repository | `ghcr.io/dysnix/docker-agave` |
| `image.tag` | Agave image tag | `""` |
| `image.pullPolicy` | Agave image pull policy | `IfNotPresent` |
Expand All @@ -34,6 +33,8 @@ A Helm chart to deploy Agave node inside Kubernetes cluster.
| `tolerations` | Tolerations for pod assignment | `[]` |
| `volumes` | Pod extra volumes | `[]` |
| `volumeMounts` | Container extra volumeMounts | `[]` |
| `extraInitContainers` | Extra initContainers (can be templated) | `[]` |
| `sidecarContainers` | Extra sidecar containers (can be templated) | `[]` |

### Services configuration

Expand Down Expand Up @@ -80,7 +81,7 @@ A Helm chart to deploy Agave node inside Kubernetes cluster.
| `agaveArgs` | `agave-validator` arguments | `{}` |
| `gracefulShutdown.timeout` | Seconds to wait for graceful shutdown | `120` |
| `gracefulShutdown.options` | `agave-validator exit` arguments | `{}` |
| `gracefulShutdown.options.force` | Do not wait for restart-window, useful for non-validators | `false` |
| `gracefulShutdown.options.force` | Do not wait for restart window, useful for non-validators | `false` |
| `gracefulShutdown.options.skip-health-check` | Skip health check before exit | `false` |
| `gracefulShutdown.options.skip-new-snapshot-check` | Skip check for a new snapshot before exit | `false` |
| `rustLog` | Logging configuration | `solana_metrics=warn,agave_validator::bootstrap=debug,info` |
Expand Down
6 changes: 6 additions & 0 deletions dysnix/agave/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,13 @@ spec:
mountPath: /scripts
{{- end }}
{{- end }}
{{- with .Values.extraInitContainers }}
{{- tpl (toYaml . | nindent 8) $ }}
{{- end }}
containers:
{{- with .Values.sidecarContainers }}
{{- tpl (toYaml . | nindent 8) $ }}
{{- end }}
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
Expand Down
17 changes: 17 additions & 0 deletions dysnix/agave/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,23 @@ volumes: []
## mountPath: /secrets
volumeMounts: []

## @param extraInitContainers [array] Extra initContainers (can be templated)
## Example:
## extraInitContainers:
## - name: download-snapshots
## image: c29r3/solana-snapshot-finder:latest
## args:
## - --snapshot_path
## - /data/ledger
## volumeMounts:
## - name: ledger
## mountPath: /data/ledger
extraInitContainers: []

## @param sidecarContainers [array] Extra sidecar containers (can be templated)
##
sidecarContainers: []

## @section Services configuration
##
services:
Expand Down

0 comments on commit b837c99

Please sign in to comment.