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

[flyte-core] Add tolerations and affinity for missing deployments #5386

Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,10 @@ spec:
{{- with .Values.cluster_resource_manager.nodeSelector }}
nodeSelector: {{ tpl (toYaml .) $ | nindent 8 }}
{{- end }}
{{- with .Values.cluster_resource_manager.affinity }}
affinity: {{ tpl (toYaml .) $ | nindent 8 }}
{{- end }}
{{- with .Values.cluster_resource_manager.tolerations }}
tolerations: {{ tpl (toYaml .) $ | nindent 8 }}
{{- end }}
{{- end }}
6 changes: 6 additions & 0 deletions charts/flyte-core/templates/propeller/webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ spec:
{{- with .Values.flytepropeller.nodeSelector }}
nodeSelector: {{ tpl (toYaml .) $ | nindent 8 }}
{{- end }}
{{- with .Values.flytepropeller.affinity }}
affinity: {{ tpl (toYaml .) $ | nindent 8 }}
{{- end }}
{{- with .Values.flytepropeller.tolerations }}
tolerations: {{ tpl (toYaml .) $ | nindent 8 }}
{{- end }}
---
# Service
apiVersion: v1
Expand Down
11 changes: 11 additions & 0 deletions charts/flyte-core/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,13 @@
cpu: 200m
ephemeral-storage: 500Mi
memory: 500Mi

Check failure on line 485 in charts/flyte-core/values.yaml

View workflow job for this annotation

GitHub Actions / lint-and-test-charts

485:1 [trailing-spaces] trailing spaces
# -- nodeSelector for Webhook deployment
nodeSelector: {}
# -- tolerations for Webhook deployment
tolerations: []
# -- affinity for Webhook deployment
affinity: {}

# ------------------------------------------------
#
Expand Down Expand Up @@ -913,6 +920,10 @@
podLabels: {}
# -- nodeSelector for ClusterResource deployment
nodeSelector: {}
# -- tolerations for ClusterResource deployment
tolerations: []
# -- affinity for ClusterResource deployment
affinity: {}
# -- Resources for ClusterResource deployment
resources: {}
# -- Configmap for ClusterResource parameters
Expand Down
Loading