https://prefect.io logo
a

Alex Bussan

11/18/2020, 4:29 PM
I have been looking into running flows using a KubernetesRun like so:
Copy code
flow.run_config = KubernetesRun(
    job_template_path="my_custom_template.yaml"
)
vs configuring/running a flow this way (using KubernetesJobEnvironment)
Copy code
flow = Flow(
    "flow_w_jobenv",
    environment=KubernetesJobEnvironment(job_spec_file="job_spec.yaml"),
    storage=Docker()
)
I'm struggling to understand the differences/ tradoffs of configuring a job one way vs another. Both ways you can pass in information that a job spec would need. Then you register the flow and run it and the k8s agent picks it up. Is there any fundamental difference I'm missing?
j

Jim Crist-Harif

11/18/2020, 4:30 PM
We're transitioning (slowly) from environment-based configuration to run-config based configuration. Run configs are the new way to do things, environments are the old way.
👀 1
a

Alex Bussan

11/18/2020, 4:31 PM
Thanks, I was getting that impression but that clears it up 🙂
2 Views