What is the relationship between an agent running ...
# prefect-community
j
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
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
Thanks. :D