https://prefect.io logo
Title
j

James Constable

09/28/2022, 10:09 PM
What is the relationship between an agent running on kubernetes and a kubernetesJob defined in infrastructure... • Does the kubernetes agent start the kubernetes job? ◦ if so, do I need a kubeconfig in the infrastructure block when the agent is already on the cluster? • If I run the job in an infrastructure process block from a kubernetes agent, will it run on the kubernetes agent?
1
z

Zanie

09/28/2022, 10:24 PM
Does the kubernetes agent start the kubernetes job?
Yep!
do I need a kubeconfig in the infrastructure block when the agent is already on the cluster?
Nope! We’ll use the incluster config by default. You can provide a different config to create jobs in another cluster
If I run the job in an infrastructure process block from a kubernetes agent, will it run on the kubernetes agent?
Yep! It’ll run in a subprocess in the agent’s container
j

James Constable

09/28/2022, 10:37 PM
Thanks. :D