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.