Hi ? How do we set minimum resources for a prefect deployment ? I have kubernetes workers, and I nee...
l
Hi ? How do we set minimum resources for a prefect deployment ? I have kubernetes workers, and I need to tell them how much memory my script need to be able to autoscale my kubernetes job when deployment is running... (in Prefect 3x btw). ChatGPT give me this but I dont see any doc about it :
Copy code
deployments:
- name: my_deployment
  work_pool:
    name: my_worker_pool
    job_variables:
      pod:
        spec:
          containers:
            - name: flow
              resources:
                requests:
                  cpu: "2"
                  memory: "8Gi"
                limits:
                  cpu: "4"
                  memory: "8Gi"
the worker itself doesn't need a memory/cpu allocation, as chatgpt alluded to, you need to configure the
job_variables
(or job "spec") that define the pod that the worker spins up at runtime