Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

A Kubernetes operator for defining Prefect resources

Notifications You must be signed in to change notification settings

chrisguidry/prefect-operator

Repository files navigation

Prefect operator for Kubernetes

Development

After cloning, create and activate a Python virtual environment, the run make. On subsequent pulls, or when changing dependencies (in requirements.in), make will bring the environment up to the latest.

Run the development version of the operator on your host with

kopf run prefect_operator.py

The examples refer to a Kubernetes storage class named standard, which comes with minikube by default. You may need to adjust this for your cluster if you are using a different stack or have changed your storage setup.

Development and prototyping with minikube

First, you should have minikube installed or an equivalent local Kubernetes cluster installed and configured.

Make sure minikube is the cluster you're configured to connect to;

kubectl config current-context

You should see minikube as the output.

To deploy the example system on postgres:

./deploy-example postgres

This will deploy the manifests in examples/postgres, including the namespace pop-pg, a PostgreSQL database server, a PrefectServer and a PrefectWorkPool using that server.

About

A Kubernetes operator for defining Prefect resources

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published