<@ULVA73B9P> I have a Prefect 3.1.5 instance runni...
# ask-marvin
d
@Marvin I have a Prefect 3.1.5 instance running in Kubernetes and when I start a flow the kubernetes job has the labels I configured on the work pool but the pod that it launches does not, why not?
m
It seems there's a known issue with Prefect where labels configured in a Kubernetes work pool are applied to the Kubernetes job but not to the pods that the job creates. This issue is documented in a GitHub issue: Labels not being applied to jobs on a Kubernetes work-pool. To address this, you might need to manually modify the job manifest to ensure that the desired labels are applied to the pod template within the job specification. This can be done by editing the job manifest directly to include the labels under the
spec.template.metadata.labels
section. If you need further assistance or a workaround, consider following the issue on GitHub for updates or potential fixes from the Prefect team.
👍 1