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
- Host: GitHub
- URL: https://github.com/emilrex/prefect-serve-example
- Owner: EmilRex
- Created: 2023-08-31T20:40:01.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-22T14:56:33.000Z (about 2 years ago)
- Last Synced: 2025-02-27T06:22:42.439Z (over 1 year ago)
- Topics: kubernetes, prefect
- Language: Python
- Homepage: https://www.prefect.io/
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```