-
Notifications
You must be signed in to change notification settings - Fork 669
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added flyte scheduler in helm (#1374)
- Loading branch information
Showing
19 changed files
with
729 additions
and
214 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{{- if .Values.workflow_scheduler.enabled}} | ||
{{- if eq .Values.workflow_scheduler.type "native" }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: flyte-scheduler-config | ||
namespace: {{ template "flyte.namespace" . }} | ||
labels: {{ include "flytescheduler.labels" . | nindent 4 }} | ||
data: | ||
{{- with .Values.configmap.admin }} | ||
admin.yaml: | {{ toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- with .Values.db.admin }} | ||
db.yaml: | {{ tpl (toYaml .) $ | nindent 4 }} | ||
{{- end }} | ||
{{- with .Values.configmap.logger }} | ||
logger.yaml: | {{ toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
64 changes: 64 additions & 0 deletions
64
charts/flyte-core/templates/flytescheduler/deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{{- if .Values.workflow_scheduler.enabled}} | ||
{{- if eq .Values.workflow_scheduler.type "native" }} | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ template "flytescheduler.name" . }} | ||
namespace: {{ template "flyte.namespace" . }} | ||
labels: {{ include "flytescheduler.labels" . | nindent 4 }} | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: {{ include "flytescheduler.selectorLabels" . | nindent 6 }} | ||
template: | ||
metadata: | ||
annotations: | ||
configChecksum: {{ include (print .Template.BasePath "/admin/configmap.yaml") . | sha256sum | trunc 63 | quote }} | ||
{{- with .Values.flytescheduler.podAnnotations }} | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
labels: {{ include "flytescheduler.labels" . | nindent 8 }} | ||
spec: | ||
initContainers: | ||
- command: | ||
- flytescheduler | ||
- precheck | ||
- --config | ||
- {{ .Values.flytescheduler.configPath }} | ||
image: "{{ .Values.flytescheduler.image.repository }}:{{ .Values.flytescheduler.image.tag }}" | ||
imagePullPolicy: "{{ .Values.flytescheduler.image.pullPolicy }}" | ||
name: flytescheduler-check | ||
volumeMounts: {{- include "databaseSecret.volumeMount" . | nindent 10 }} | ||
- mountPath: /etc/flyte/config | ||
name: config-volume | ||
containers: | ||
- command: | ||
- flytescheduler | ||
- run | ||
- --config | ||
- {{ .Values.flytescheduler.configPath }} | ||
image: "{{ .Values.flytescheduler.image.repository }}:{{ .Values.flytescheduler.image.tag }}" | ||
imagePullPolicy: "{{ .Values.flytescheduler.image.pullPolicy }}" | ||
name: flytescheduler | ||
resources: {{ toYaml .Values.flytescheduler.resources | nindent 10 }} | ||
volumeMounts: {{- include "databaseSecret.volumeMount" . | nindent 10 }} | ||
- mountPath: /etc/flyte/config | ||
name: config-volume | ||
serviceAccountName: {{ template "flyteadmin.name" . }} | ||
volumes: {{- include "databaseSecret.volume" . | nindent 8 }} | ||
- emptyDir: {} | ||
name: shared-data | ||
- configMap: | ||
name: flyte-scheduler-config | ||
name: config-volume | ||
{{- with .Values.flytescheduler.nodeSelector }} | ||
nodeSelector: {{ toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.flytescheduler.affinity }} | ||
affinity: {{ toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.flytescheduler.tolerations }} | ||
tolerations: {{ toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
Oops, something went wrong.