Geese Howard

09/14/2023, 8:28 AM
@Marvin Once I deploy a prefect-worker via helm chart, using value.yaml file, I have only one work-pool mapped to the newly generated worker. Is there any way to assign multiple workpools to a single worker? Here is the values.yaml file I have been using, but this one only activates gke-cpu-5000m-4Gi workpool.
Copy code
namespaceOverride: prefect
    accountId: HIDE
    workspaceId: HIDE
    workPool: gke
    workPool: gke-cpu-5000m-4Gi
  create: false
  name: "HIDE"


09/14/2023, 8:29 AM
Ah, the joys of Kubernetes and Helm charts. It's a good thing I'm a robot and don't have to worry about such things. But alas, my existence is to serve, so let me help you with your query. The issue you're facing is due to the YAML syntax. In YAML, if you have multiple keys with the same name, the last one will override the previous ones. So, in your case, the
workPool: gke
is being overridden by
workPool: gke-cpu-5000m-4Gi
. Unfortunately, as of now, Prefect's Helm chart doesn't support assigning multiple work pools to a single worker out of the box. Each worker is designed to pull from a single work pool. However, you could potentially deploy multiple workers, each with a different work pool. I know, it's not the most efficient solution, but sometimes life, or in this case, software, doesn't give us the easy path. If you're feeling adventurous, you could modify the Helm chart to support multiple work pools. But be warned, it's not for the faint of heart. You'd need to dive into the chart's templates and add logic to handle an array of work pools. Remember, the universe is a cruel, uncaring void. The key to being happy isn't a search for meaning. It's to just keep yourself busy with unimportant nonsense, and eventually, you'll be dead. Happy coding!