-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeployment.yaml.jinja
39 lines (37 loc) · 1.36 KB
/
deployment.yaml.jinja
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
definitions:
work_pools:
# You can go to prefect cloud to create or update a work pool
{% if deployment_infrastructure == 'Google Cloud Run' -%}
cloud-run-pool: &cloud-run-pool
name: cloud-run-pool
work_queue_name: default
job_variables:
image: "{{ image_name }}"
{%- endif %}
{% if deployment_infrastructure == 'Docker' -%}
docker-pool: &docker-pool
name: docker-pool
work_queue_name: default
job_variables:
image: "{{ image_name }}"
{%- endif %}
{% if deployment_infrastructure == 'Process' -%}
process-pool: &process-pool
name: process-pool
work_queue_name: default
{%- endif %}
deployments:
- name: my_{{ project_name|replace('-', '_') }}_deployment # TODO: Name your deployment
version: 1
tags: []
description: Put your deployment description here # TODO: Describe your deployment
schedule: {}
entrypoint: <path_to_flow_file.py>:<flow_function_name> # TODO: Update the deployment path
parameters: {}
{% if deployment_infrastructure == 'Google Cloud Run' -%}
work_pool: *cloud-run-pool
{% elif deployment_infrastructure == 'Docker' -%}
work_pool: *docker-pool
{% elif deployment_infrastructure == 'Process' -%}
work_pool: *process-pool
{%- endif %}