-
Notifications
You must be signed in to change notification settings - Fork 684
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add agent to helm chart and single binary (#3454)
* wip Signed-off-by: Kevin Su <[email protected]> * wip Signed-off-by: Kevin Su <[email protected]> * wip Signed-off-by: Kevin Su <[email protected]> * wip Signed-off-by: Kevin Su <[email protected]> * wip Signed-off-by: Kevin Su <[email protected]> * make build Signed-off-by: Kevin Su <[email protected]> * fix tests Signed-off-by: Kevin Su <[email protected]> * make helm Signed-off-by: Kevin Su <[email protected]> * update config map for propeller Signed-off-by: Kevin Su <[email protected]> * wip Signed-off-by: Kevin Su <[email protected]> * nit Signed-off-by: Kevin Su <[email protected]> * rename and add rbac.yaml Signed-off-by: Kevin Su <[email protected]> * rename Signed-off-by: Kevin Su <[email protected]> * update helm chart Signed-off-by: Kevin Su <[email protected]> * remove eps from eks and gcp Signed-off-by: Kevin Su <[email protected]> * update manifest Signed-off-by: Kevin Su <[email protected]> * helm chart Signed-off-by: Kevin Su <[email protected]> * nit Signed-off-by: Kevin Su <[email protected]> * update agent image Signed-off-by: Kevin Su <[email protected]> * rename Signed-off-by: Kevin Su <[email protected]> * nit Signed-off-by: Kevin Su <[email protected]> * update endpoint Signed-off-by: Kevin Su <[email protected]> * update endpoint Signed-off-by: Kevin Su <[email protected]> * update Signed-off-by: Kevin Su <[email protected]> * update Signed-off-by: Kevin Su <[email protected]> * nit Signed-off-by: Kevin Su <[email protected]> * nit Signed-off-by: Kevin Su <[email protected]> * nit Signed-off-by: Kevin Su <[email protected]> * Fix indentation error Signed-off-by: Kevin Su <[email protected]> * update Signed-off-by: Kevin Su <[email protected]> * Register after installing packages Signed-off-by: Kevin Su <[email protected]> --------- Signed-off-by: Kevin Su <[email protected]>
- Loading branch information
Showing
30 changed files
with
588 additions
and
66 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -163,6 +163,11 @@ jobs: | |
memory: "0" | ||
EOF | ||
flytectl demo start --image flyte-sandbox-bundled:local --imagePullPolicy Never | ||
- name: Install Python dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install flytekit | ||
pip freeze | ||
- name: Register examples | ||
uses: unionai/[email protected] | ||
with: | ||
|
@@ -171,11 +176,6 @@ jobs: | |
project: flytesnacks | ||
domain: development | ||
version: "latest" | ||
- name: Install Python dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install flytekit | ||
pip freeze | ||
- name: End2End | ||
env: | ||
PRIORITIES: "P0" | ||
|
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
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
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,53 @@ | ||
{{- if .Values.flyteagent.enabled }} | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ template "flyteagent.name" . }} | ||
namespace: {{ template "flyte.namespace" . }} | ||
labels: {{ include "flyteagent.labels" . | nindent 4 }} | ||
spec: | ||
replicas: {{ .Values.flyteagent.replicaCount }} | ||
selector: | ||
matchLabels: {{ include "flyteagent.selectorLabels" . | nindent 6 }} | ||
template: | ||
metadata: | ||
annotations: | ||
{{- with .Values.flyteagent.podAnnotations }} | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
labels: {{ include "flyteagent.labels" . | nindent 8 }} | ||
spec: | ||
{{- if .Values.flyteagent.priorityClassName }} | ||
priorityClassName: {{ .Values.flyteagent.priorityClassName }} | ||
{{- end }} | ||
containers: | ||
- command: | ||
- pyflyte | ||
- serve | ||
image: "{{ .Values.flyteagent.image.repository }}:{{ .Values.flyteagent.image.tag }}" | ||
imagePullPolicy: "{{ .Values.flyteagent.image.pullPolicy }}" | ||
name: flyteagent | ||
ports: | ||
- containerPort: {{ .Values.flyteagent.ports.containerPort }} | ||
name: {{ .Values.flyteagent.ports.name }} | ||
resources: {{- toYaml .Values.flyteagent.resources | nindent 10 }} | ||
{{- with .Values.flyteagent.additionalVolumeMounts -}} | ||
{{ tpl (toYaml .) $ | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.flyteagent.additionalContainers -}} | ||
{{- tpl (toYaml .) $ | nindent 6}} | ||
{{- end }} | ||
serviceAccountName: {{ template "flyteagent.name" . }} | ||
{{- with .Values.flyteagent.additionalVolumes -}} | ||
{{ tpl (toYaml .) $ | nindent 6 }} | ||
{{- end }} | ||
{{- with .Values.flyteagent.nodeSelector }} | ||
nodeSelector: {{ tpl (toYaml .) $ | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.flyteagent.affinity }} | ||
affinity: {{ tpl (toYaml .) $ | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.flyteagent.tolerations }} | ||
tolerations: {{ tpl (toYaml .) $ | nindent 8 }} | ||
{{- end }} | ||
{{- end }} |
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,21 @@ | ||
{{- if .Values.flyteagent.enabled }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ template "flyteagent.name" . }} | ||
namespace: {{ template "flyte.namespace" . }} | ||
labels: {{ include "flyteagent.labels" . | nindent 4 }} | ||
{{- with .Values.flyteagent.service.annotations }} | ||
annotations: {{ tpl (toYaml .) $ | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
{{- with .Values.flyteagent.service.type}} | ||
type: {{ . }} | ||
{{- end }} | ||
ports: | ||
- name: {{ .Values.flyteagent.ports.name }} | ||
port: {{ .Values.flyteagent.ports.containerPort }} | ||
protocol: TCP | ||
targetPort: {{ .Values.flyteagent.ports.name }} | ||
selector: {{ include "flyteagent.selectorLabels" . | nindent 4 }} | ||
{{- end }} |
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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
flytepropeller: | ||
enabled: false | ||
|
||
flyteagent: | ||
enabled: false |
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 |
---|---|---|
|
@@ -18,3 +18,6 @@ datacatalog: | |
|
||
flyteconsole: | ||
enabled: false | ||
|
||
flyteagent: | ||
enabled: false |
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
Oops, something went wrong.