https://prefect.io logo
#prefect-community
Title
# prefect-community
a

Avi A

05/04/2020, 2:45 PM
Hey! We want to use Prefect with k8s in a way that would automatically connect to k8s API and will create Pods according to our real-time requirements. can this be done with Prefect?
k

Kyle Moon-Wright

05/04/2020, 3:19 PM
Hey @Avi A, Have you checked out the Kubernetes tasks in the API library? There may be a useful first-class task for your use case, however we may need more information on what you’re trying to accomplish. Check it out here: https://docs.prefect.io/api/latest/tasks/kubernetes.html#createnamespacedpod
a

Avi A

05/04/2020, 3:24 PM
looks cool, I’ll check it out! I also encountered this warning here, and I’m not sure which features it applies to… https://docs.prefect.io/orchestration/tutorial/k8s.html#scaling-out-with-kubernetes
k

Kyle Moon-Wright

05/04/2020, 3:37 PM
Currently using Prefect Cloud is the only way to utilize agents, like the Kubernetes Agent with token access mentioned on that page, as Prefect Core is limited to a local Prefect Server. You can still interact with the K8s API in a task though.
And you can always sign up for a free Scheduler account and go bananas with Agents!
👍 2
a

Avi A

05/04/2020, 7:16 PM
thanks, we’ll take a look. are there plans to open source these parts?
k

Kyle Moon-Wright

05/04/2020, 7:27 PM
Not at the moment, currently the team has been laser-focused on PIN-16 and task library integrations with tools like Great Expectations.