Skip to content

Commit

Permalink
sync-cluster-resources before FlyteAdmin starts
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanburns committed Oct 23, 2019
1 parent 3966f52 commit fd1320d
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Flyte

Flyte is a K8s-native, multi-tenant, distributed orchestration engine that manages highly scalable compute workflows. Extensibility is provided by Flyte plugins and K8s operators, including executors for Spark, Hive, AWS Batch, in addition to raw K8s compute. Flyte can orchestrate arbitrary containers at scale, providing feature fanout, automatic task parallelization, strongly-typed paramerter passing, automatic cluster scale up and scale down, cluster fail-over, and fine-grained programmatic control over retry policies, error handling, and notifications.
Flyte is a K8s-native, multi-tenant, distributed orchestration engine that manages highly scalable compute workflows.

Extensibility is provided by Flyte plugins and K8s operators, including executors for Spark, Hive, AWS Batch, in addition to raw K8s compute. Flyte can orchestrate arbitrary containers at scale, providing feature fanout, automatic task parallelization, strongly-typed paramerter passing, automatic cluster scale up and scale down, cluster fail-over, and fine-grained programmatic control over retry policies, error handling, and notifications.

See docs at https://lyft.github.io/flyte/
18 changes: 18 additions & 0 deletions deployment/sandbox/flyte_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1078,8 +1078,26 @@ spec:
volumeMounts:
- mountPath: /etc/flyte/config
name: config-volume
- command:
- flyteadmin
- --logtostderr
- --config
- /etc/flyte/config/flyteadmin_config.yaml
- clusterresource
- sync
image: docker.io/lyft/flyteadmin:v0.1.1
imagePullPolicy: IfNotPresent
name: sync-cluster-resources
volumeMounts:
- mountPath: /etc/flyte/clusterresource/templates
name: resource-templates
- mountPath: /etc/flyte/config
name: config-volume
serviceAccountName: flyteadmin
volumes:
- configMap:
name: clusterresource-template-dgc9fcm2kh
name: resource-templates
- emptyDir: {}
name: shared-data
- configMap:
Expand Down
18 changes: 18 additions & 0 deletions deployment/test/flyte_generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -739,8 +739,26 @@ spec:
volumeMounts:
- mountPath: /etc/flyte/config
name: config-volume
- command:
- flyteadmin
- --logtostderr
- --config
- /etc/flyte/config/flyteadmin_config.yaml
- clusterresource
- sync
image: docker.io/lyft/flyteadmin:v0.1.1
imagePullPolicy: IfNotPresent
name: sync-cluster-resources
volumeMounts:
- mountPath: /etc/flyte/clusterresource/templates
name: resource-templates
- mountPath: /etc/flyte/config
name: config-volume
serviceAccountName: flyteadmin
volumes:
- configMap:
name: clusterresource-template-dgc9fcm2kh
name: resource-templates
- emptyDir: {}
name: shared-data
- configMap:
Expand Down
13 changes: 13 additions & 0 deletions kustomize/overlays/sandbox/admindeployment/admindeployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
spec:
template:
spec:
volumes:
- name: resource-templates
configMap:
name: clusterresource-template
initContainers:
- name: check-db-ready
image: postgres:10.1
Expand All @@ -28,6 +32,15 @@ spec:
volumeMounts:
- name: config-volume
mountPath: /etc/flyte/config
- name: sync-cluster-resources
image: docker.io/lyft/flyteadmin:v0.1.1
imagePullPolicy: IfNotPresent
command: ["flyteadmin", "--logtostderr", "--config", "/etc/flyte/config/flyteadmin_config.yaml", "clusterresource", "sync"]
volumeMounts:
- name: resource-templates
mountPath: /etc/flyte/clusterresource/templates
- name: config-volume
mountPath: /etc/flyte/config
containers:
- name: flyteadmin
resources:
Expand Down

0 comments on commit fd1320d

Please sign in to comment.