An open API service indexing awesome lists of open source software.

https://github.com/emilrex/prefect-serve-example

Serve a Prefect flow with Kubernetes
https://github.com/emilrex/prefect-serve-example

kubernetes prefect

Last synced: 2 months ago
JSON representation

Serve a Prefect flow with Kubernetes

Awesome Lists containing this project

README

          

# prefect-serve-example

Example of using `prefect.serve` with Kubernetes.

## Getting Started

The example assumes you have a Kubernetes cluster running locally. Tested with Docker-Desktop provided Kubernetes.

```bash
docker build . -t serve-flows:latest

kubectl create secret generic prefect-api-key --from-literal=key=
kubectl create secret generic prefect-api-url --from-literal=key=https://api.prefect.cloud/api/accounts//workspaces/

kubectl apply -f deployment.yaml

python submit.py 10
```