@@ -64,26 +64,21 @@ when you installed the dependencies._
6464
6565## Running on a self-hosted Prefect Server
6666
67+ #### Prepare Your Prefect Server Environment (ONLY ONCE)
68+ - Create work-pool
69+ - ` prefect work-pool create K8WorkerPool --type kubernetes `
70+ - Hint: The Prefect Work Pool is not a resource running in Kubernetes; it is a metadata object on the Prefect Server.
71+ - Assumption: there is a Kubernetes pod running ` prefect worker start --pool "K8WorkerPool" `
72+
73+ #### Prepare Your Local Environment (ONLY ONCE)
6774- Set environment variables
6875 - ` prefect config unset PREFECT_API_KEY `
6976 - ` prefect config set PREFECT_API_URL="http://your-server/api" `
7077 - ` $env:PREFECT_API_AUTH_STRING="admin:supersecret" `
7178- Check it is working
7279 - ` prefect deployment ls `
73- - Create work-pool
74- - ` prefect work-pool create K8WorkerPool --type kubernetes `
75- - Hint: The Prefect Work Pool is not a resource running in Kubernetes; it is a metadata object on the Prefect Server.
76- - Assumption: there is a Kubernetes pod running ` prefect worker start --pool "K8WorkerPool" `
7780
7881#### Deploy and Run
79- - Build and Deploy Docker (assuming ghcr.io/timconrad is the target)
80- - Build local image: ` DOCKER_BUILDKIT=1 sudo docker build --no-cache -t ghcr.io/timconrad/mardikg_paper2code_linker:latest . `
81- - Login to GitHub: ` echo "<YOUR_GITHUB_PAT>" | sudo docker login ghcr.io -u <YOUR_GITHUB_USERNAME> --password-stdin `
82- - Push: ` sudo docker push ghcr.io/timconrad/mardikg_paper2code_linker:latest `
83- - Make public: ` https://github.com/users/timconrad/packages/container/mardikg_paper2code_linker/settings `
84- - Check: ` https://github.com/timconrad?tab=packages `
85-
86-
8782- Run ` python .\workflow_deploy_kubernetes.py `
8883
8984
0 commit comments