Alan
02/04/2025, 6:36 AM## Deployment Configuration
worker:
# -- unique cluster identifier, if none is provided this value will be infered at time of helm install
clusterUid: ""
image:
# -- worker image repository
repository: prefecthq/prefect
## prefect tag is pinned to the latest available image tag at packaging time. Update the value here to
## override pinned tag
# -- prefect image tag (immutable tags are recommended)
prefectTag: 2.19.3-python3.11-kubernetes
# -- worker image pull policy
pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets.
## Secrets must be manually created in the namespace.
## ref: <https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/>
## e.g:
## pullSecrets:
## - myRegistryKeySecretName
# -- worker image pull secrets
pullSecrets: []
# -- enable worker image debug mode
debug: false
## general configuration of the worker
config:
# -- the work pool that your started worker will poll.
workPool: ${WORK_POOL_NAME}
# -- one or more work queue names for the worker to pull from. if not provided, the worker will pull from all work queues in the work pool
workQueues: []
queryInterval: 5
prefetchSeconds: 10
http2: true
type: kubernetes
installPolicy: prompt
worker. If not provided, a unique name will be generated.
name: null
start simultaneously (default: unlimited)
limit: null
# -- JSON formatted base job template. If unspecified, Prefect will use the default base job template for the given worker type.
baseJobTemplate: |-
{}
Passing in the json formatted value DOES NOT WORK. Why can I just pass in the name of an EXISTING CONFIGMAP. I know you can do this in later version of prefect, however, for this version it seems IMPOSSIBLE to pass in the json baseJobTemplate!Marvin
02/04/2025, 6:36 AMbaseJobTemplate
for a Kubernetes worker in Prefect 2.19.3. The documentation excerpts I found don't directly address your issue but do provide some general guidance on customizing job templates using the Prefect Helm chart.
Here are a few pointers based on the available information:
1. Custom Job Templates: Prefect allows for custom job templates by defining a job configuration model. However, these models often require the definition of template variables. You might need to ensure that your JSON template correctly references these variables.
2. Helm Chart Configuration: When configuring the Helm chart, ensure that all necessary values are correctly specified in your values.yaml
file, including any external configurations like ConfigMaps. Unfortunately, the specific ability to reference a ConfigMap for the baseJobTemplate
isn't explicitly documented for your version.
3. Documentation Reference: You can refer to the Prefect Kubernetes Worker Guide for more detailed instructions on deploying workers using Helm.
If you continue to face issues, consider reaching out on the Prefect community forums or checking if there are any updates or patches that might address your specific problem.Mitch Nielsen
02/04/2025, 4:33 PM