<@ULVA73B9P> do you have a github action template ...
# ask-marvin
b
@Marvin do you have a github action template to deploy flows on kubernetes?
m
I couldn't find an existing GitHub Action template specifically for deploying Prefect flows to Kubernetes. However, there are relevant discussions and pull requests in the Prefect GitHub repository that might offer some insights or context you can build upon. Here are some relevant links and issues: 1. Flow cancellation does not delete Dask Scheduler &amp; Worker pods (Kubernetes deployment): This issue discusses behavior observed when canceling flows on Kubernetes, specifically when using the
DaskTaskRunner
. 2. Support retrying flows on crashed state: This issue discusses adding retry functionalities for flows that crash, which although not directly related to deployment, may provide insight on Kubernetes integration given its focus on flow behavior. While a direct template is not available, these issues and discussions might guide you in creating a custom GitHub Action for deploying flows. If you require further assistance specific to setting up Kubernetes deployments, consider exploring Prefect's documentation or community forums for more guidance.
n
generally speaking CI for deploying to kubernetes shouldnt be different than any other deployment CI, except it might have an extra step • set PREFECT_API_KEY, PREFECT_API_URL in env • extra step: optionally build and push an image to your registry • run
prefect --no-prompt deploy --all
(or call it for individual deployments) here's a related GHA