Deceivious
04/20/2023, 8:47 AM"jobs.batch is forbidden: User \"system:serviceaccount:prefect2-worker-dev:prefect-worker\" cannot create resource \"jobs\" in API group \"batch\" in the namespace \"default\"
How do I change the jobs from being created in default namespace and change it to some other name space?Deceivious
04/20/2023, 8:48 AMdeployment = Deployment.build_from_flow(
        flow=flow,
        name=deployment_name,
        schedule=schedule,
        tags=tags,
        is_schedule_active=is_schedule_active,
        work_pool_name=work_pool_name,
        work_queue_name=work_queue_name,
        infrastructure=KubernetesJob(
            namespace=config.get("INFRA", "KUBERNETES_NAMESPACE") # THIS IS NOT DEFAULT
        ),
        infra_overrides=generate_kubernetes_overrides(
            manifest, environment, mem_limit_gb
        ),
        path=DOCKER_WORK_DIR,
    )
deployment.apply()
And I have deployed prefect workers using hellm from the prefect-helm  github.redsquare
04/20/2023, 8:54 AMredsquare
04/20/2023, 8:54 AMredsquare
04/20/2023, 9:01 AMDeceivious
04/20/2023, 9:03 AMredsquare
04/20/2023, 9:04 AMDeceivious
04/20/2023, 12:01 PMredsquare
04/20/2023, 12:04 PMDeceivious
04/20/2023, 12:07 PMredsquare
04/20/2023, 12:12 PMDeceivious
04/20/2023, 12:13 PM