Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init Container doesn't have resources defined #112

Open
cyberladyknight5958 opened this issue Oct 11, 2023 · 0 comments · May be fixed by #114
Open

Init Container doesn't have resources defined #112

cyberladyknight5958 opened this issue Oct 11, 2023 · 0 comments · May be fixed by #114

Comments

@cyberladyknight5958
Copy link

cyberladyknight5958 commented Oct 11, 2023

Some Kubernetes clusters require resources to be defined for all containers running in the cluster. Need to be able to define resources for the initContainers.

{{- if $initContainerEnabled }}
initContainers:
{{- with .Values.alpha.extraInitContainers }}
{{- tpl (toYaml .) $ | nindent 6 }}
{{- end }}
{{- if .Values.alpha.initContainers.init.enabled }}
- name: {{ template "dgraph.alpha.fullname" . }}-init
image: {{ template "dgraph.initContainers.init.image" . }}
imagePullPolicy: {{ .Values.alpha.initContainers.init.image.pullPolicy | quote }}
env:
{{- with .Values.alpha.initContainers.init.env }}
{{- toYaml . | nindent 12 }}
{{- end }}
command:
{{- range .Values.alpha.initContainers.init.command }}
- {{ . | quote }}
{{- end }}
{{- if .Values.alpha.persistence.enabled }}
volumeMounts:
- name: datadir
mountPath: /dgraph
{{- end }}
{{- end }}
{{- end }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant