Marcelo Santoro
12/20/2022, 3:13 PMBianca Hoch
12/21/2022, 6:49 PMname
variable in the base job template. Here a few resources to get your started:
⢠Creating and Deploying a custom Kubernetes Infrastructure Block
⢠Documentation for KubernetesJob (see name
attribute)
⢠Additional documentation for KubernetesJobname
set to your "prefect-flow-name".
from prefect.infrastructure import KubernetesJob
k8s_job=KubernetesJob(
namespace="prefect2",
name = "prefect-flow-name"
image="prefecthq/prefect:2.3.0-python3.9",
env={"EXTRA_PIP_PACKAGES": "adlfs"}
job=KubernetesJob.job_from_file("modified_run_job.yaml")
)
k8s_job.save("k8sdev")
Marcelo Santoro
12/21/2022, 6:55 PMBianca Hoch
12/21/2022, 7:54 PMMarcelo Santoro
12/21/2022, 7:55 PMBianca Hoch
12/21/2022, 7:56 PM