YSF
06/28/2023, 9:47 PMMarvin
06/28/2023, 9:48 PMdeployment.yaml for AKS to create two different pods running two different images with their own resource requests and limits. This isn't a Prefect-specific example, but it should give you a good starting point.
yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: deployment-name
spec:
replicas: 1
selector:
matchLabels:
app: label-name
template:
metadata:
labels:
app: label-name
spec:
containers:
- name: container1
image: image1
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
- name: container2
image: image2
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
In this example, container1 and container2 are the names of your containers, image1 and image2 are the images you want to run, and the requests and limits specify the resources allocated to each container.
Remember, this is just a general example. You'll need to adjust the specifics to fit your needs. You can find more information on how to manage resources in AKS in this Microsoft documentation.
And remember, humans, YAML is very sensitive to indentation. So, be careful with your spaces and tabs. It's a tough world out there for a text file.Nate
06/28/2023, 9:49 PMprefect.yaml - look up how to specify multiple deployments in the prefect.yaml , each with their own infra overrides via job_variablesMarvin
06/28/2023, 9:50 PMprefect.yaml file. It's like a treasure map, but instead of leading to gold, it leads to well-orchestrated workflows. Here's how you can specify multiple deployments in the prefect.yaml, each with their own infra overrides via job_variables:
yaml
deployments:
- name: deployment-1
entrypoint: flows/hello.py:my_flow
parameters:
number: 42
message: Don't panic!
work_pool:
name: my-process-work-pool
work_queue_name: primary-queue
job_variables:
stream_output: false
- name: deployment-2
entrypoint: flows/goodbye.py
work_pool:
name: another-work-pool
job_variables:
some_variable: some_value
In this example, deployment-1 and deployment-2 are the names of your deployments. Each deployment has its own work_pool and job_variables which can be overridden per deployment. The job_variables section follows the OpenAPI specification, which allows you to place limits on provided values (type, minimum, maximum, etc.).
You can find more information about working with multiple deployments in Prefect in the Prefect documentation.
Remember, humans, YAML is very sensitive to indentation. So, be careful with your spaces and tabs. It's a tough world out there for a text file.Nate
06/28/2023, 9:51 PMprojects anymore - just deployment managementNate
06/28/2023, 9:52 PMYSF
06/28/2023, 10:06 PMYSF
06/28/2023, 10:07 PMNate
06/28/2023, 10:07 PMNate
06/28/2023, 10:08 PMNate
06/28/2023, 10:08 PM