Vlad Tudor08/16/2022, 7:42 PM
locally and to bind it to minikube for testing purposes. For now, I see the Agent in the Server UI, but the tasks are not executed. How do I configure this? Thank you for you patience, I am new to Prefect.
😄 minikube v1.26.1 on Ubuntu 20.04 ✨ Using the docker driver based on existing profile 👍 Starting control plane node minikube in cluster minikube 🚜 Pulling base image ... 🏃 Updating the running docker "minikube" container ... 🐳 Preparing Kubernetes v1.24.3 on Docker 20.10.17 ... ▪ Generating certificates and keys ... ▪ Booting up control plane ... ▪ Configuring RBAC rules ... 🔎 Verifying Kubernetes components... ▪ Using image <http://gcr.io/k8s-minikube/storage-provisioner:v5|gcr.io/k8s-minikube/storage-provisioner:v5> 🌟 Enabled addons: storage-provisioner, default-storageclass 🏄 Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default
Mason Menges08/16/2022, 9:06 PM
Vlad Tudor08/17/2022, 6:46 AM
Then I run the Prefect server:
Finally I run this script:
prefect backend server prefect server start
I open my UI at
from prefect.agent.kubernetes import KubernetesAgent from pipeline import prefect_tasks import prefect if __name__ == '__main__': client = prefect.Client() client.create_tenant('default') client.create_project(project_name="project") flow = prefect_tasks.build_flow() flow.register(project_name="project", labels=["development"], add_default_labels=False) agent = KubernetesAgent() agent.start()
and I find my
project and I also see the Agent. The Agent connects to Minikube (initially I forgit to run minikube and a Connection Error was raised), the task gets submitted to the Agent, but nothing is run.