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

modify chart to support nodeSelector and tolerations #789

Merged
merged 2 commits into from
Jul 4, 2023
Merged
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
16 changes: 12 additions & 4 deletions deployments/helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ spec:
name: {{ template "papyrus.name" . }}-run
defaultMode: 0777
{{- end }}
{{- with .Values.deployment.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.deployment.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: {{ template "papyrus.name" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand All @@ -44,11 +52,11 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
resources:
limits:
cpu: {{ .Values.resources.limits.cpu | quote }}
memory: {{ .Values.resources.limits.memory }}
cpu: {{ .Values.deployment.resources.limits.cpu | quote }}
memory: {{ .Values.deployment.resources.limits.memory }}
requests:
cpu: {{ .Values.resources.requests.cpu | quote}}
memory: {{ .Values.resources.requests.memory }}
cpu: {{ .Values.deployment.resources.requests.cpu | quote}}
memory: {{ .Values.deployment.resources.requests.memory }}
{{- if not .Values.backup.enabled }}
{{- if .Values.services }}
ports:
Expand Down
21 changes: 13 additions & 8 deletions deployments/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,19 @@ starknet:
central_url: https://alpha-mainnet.starknet.io
additional_headers: # optional addtional headers for SN communication

# The default resources for the pod.
resources:
limits:
cpu: "1"
memory: 1Gi
requests:
cpu: 500m
memory: 1Gi
deployment:
# Optional - nodeSelector
nodeSelector:
# Optional - tolerations
tolerations:
# The default resources for a pod.
resources:
limits:
cpu: "1"
memory: 1Gi
requests:
cpu: 500m
memory: 1Gi

# Service variables for a papyrus pod.
services:
Expand Down
Loading