YSF06/28/2023, 9:47 PM
Marvin06/28/2023, 9:48 PM
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.
In this example,
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"
are the names of your containers,
are the images you want to run, and the
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.
Nate06/28/2023, 9:49 PM
- look up how to specify multiple deployments in the
, each with their own infra overrides via job_variables
Marvin06/28/2023, 9:50 PM
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
, each with their own infra overrides via job_variables:
In this example,
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
are the names of your deployments. Each deployment has its own
which can be overridden per deployment. The
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.
Nate06/28/2023, 9:51 PM
anymore - just deployment management
YSF06/28/2023, 10:06 PM
Nate06/28/2023, 10:07 PM