Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions charts/dgraph/templates/alpha/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,12 @@ spec:
- name: backups-vol-volume
mountPath: {{ .Values.backups.volume.mountPath }}
{{- end }}
{{- with .Values.alpha.extraVolumeMounts }}
{{- tpl (toYaml .) $ | nindent 8 }}
{{- end }}
{{- with .Values.alpha.extraContainers }}
{{- tpl (toYaml .) $ | nindent 6 }}
{{- end }}
terminationGracePeriodSeconds: {{ .Values.alpha.terminationGracePeriodSeconds }}
volumes:
- name: datadir
Expand Down Expand Up @@ -324,6 +330,9 @@ spec:
secret:
secretName: {{ template "dgraph.alpha.fullname" . }}-acl-secret
{{- end }}
{{- with .Values.alpha.extraVolumes }}
{{- tpl (toYaml .) $ | nindent 6 }}
{{- end }}
{{- if .Values.alpha.persistence.enabled }}
volumeClaimTemplates:
- metadata:
Expand Down
9 changes: 9 additions & 0 deletions charts/dgraph/templates/zero/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,12 @@ spec:
- name: tls-volume
mountPath: /dgraph/tls
{{- end }}
{{- with .Values.zero.extraVolumeMounts }}
{{- tpl (toYaml .) $ | nindent 8 }}
{{- end }}
{{- with .Values.zero.extraContainers }}
{{- tpl (toYaml .) $ | nindent 6 }}
{{- end }}
terminationGracePeriodSeconds: {{ .Values.zero.terminationGracePeriodSeconds }}
volumes:
- name: datadir
Expand All @@ -221,6 +227,9 @@ spec:
secret:
secretName: {{ template "dgraph.zero.fullname" . }}-tls-secret
{{- end }}
{{- with .Values.zero.extraVolumes }}
{{- tpl (toYaml .) $ | nindent 6 }}
{{- end }}
{{- if .Values.zero.persistence.enabled }}
volumeClaimTemplates:
- metadata:
Expand Down
33 changes: 33 additions & 0 deletions charts/dgraph/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,22 @@ zero:
customLivenessProbe: {}
customReadinessProbe: {}

## Extra containers to run alongside the zero container in each pod.
## Rendered into the StatefulSet pod spec `containers` list after the
## zero container. Values are processed through `tpl`, so Helm template
## expressions inside container specs are resolved at render time.
extraContainers: []

## Extra pod-level volumes. Available to the zero container via
## extraVolumeMounts below, and to any extraContainers via their own
## volumeMounts.
extraVolumes: []

## Extra volumeMounts attached to the zero container itself. To attach
## mounts to a sidecar, declare them inside that sidecar's container
## spec under extraContainers.
extraVolumeMounts: []

alpha:
name: alpha
metrics:
Expand Down Expand Up @@ -478,6 +494,23 @@ alpha:
# Enables extra init containers to be added to the alpha statefulset
extraInitContainers: []

## Extra containers to run alongside the alpha container in each pod.
## Rendered into the StatefulSet pod spec `containers` list after the
## alpha container. Values are processed through `tpl`, so Helm template
## expressions inside container specs are resolved at render time (same
## semantics as extraInitContainers above).
extraContainers: []

## Extra pod-level volumes. Available to the alpha container via
## extraVolumeMounts below, and to any extraContainers via their own
## volumeMounts.
extraVolumes: []

## Extra volumeMounts attached to the alpha container itself. To attach
## mounts to a sidecar, declare them inside that sidecar's container
## spec under extraContainers.
extraVolumeMounts: []

## You may want to initialize the Alphas with data before starting Alpha containers.
## Examples can include:
## * offline data restore from binary backups with `dgraph restore`
Expand Down