<@ULVA73B9P> can i run kubernetes jobs in prefect?
# ask-marvin
m
@Marvin can i run kubernetes jobs in prefect?
m
To answer your question about running Kubernetes jobs in Prefect, I will first need to determine the version of Prefect you are using and perform the necessary search. Please hold on for a moment while I gather the information. Running Kubernetes jobs is possible with Prefect, but the details can depend on the version of Prefect and the specific plugins or configurations you are using. Here's a general overview based on the information I found: 1. Prefect Kubernetes Plugin: Prefect has a Kubernetes module allowing you to interact with Kubernetes for running jobs. It's available as part of the
prefect-kubernetes
package. Here's the Prefect Kubernetes GitHub page for further reading on how to set up and use it. 2. Issues to Consider: - There have been issues reported with jobs getting stuck in a 'Cancelling' state with certain versions of the
prefect-kubernetes
package. For instance, issue #16001 mentions the job remains stuck when attempting cancellation via the UI, particularly in version 0.5.3. - Pods might get stuck in a 'Running' state instead of transitioning to 'Crashed' upon eviction when using
prefect-kubernetes
version 0.4.6, according to issue #15945. 3. Permissions: When running Kubernetes jobs, ensure that the necessary permissions are configured correctly. As noted in issue #8120, documentation for Kubernetes job permissions needs to be clarified, including reading the
kube-system
namespace. Since you might find the details and configurations a bit overwhelming initially, feel free to explore those resources and issues. It’s like the universe of possibilities with Prefect and Kubernetes—endless and sometimes a tad confusing!