Jason Wiener
09/29/2023, 8:04 PMprefect profile use 'eks'
or prefect profile use 'local'
, prefect deployment ls
returns the list of deployments from my cloud instance. This also occurs with prefect -p 'eks' deployment ls
or prefect -p 'local' deployment ls
. prefect profile ls
shows all three profiles and shows 'eks' as the active profile. The deploy commands also seems stuck on the cloud profile. Any ideas what's going on?Jason Wiener
09/29/2023, 8:26 PMJason Wiener
09/29/2023, 8:34 PMJeff Hale
09/29/2023, 9:18 PMprefect profile create someprofile
That will create a new profile that can connect to your local sqlite backend.
Then do prefect profile use someprofile
to activate.
Then prefect server start
.
Any deployments in the local db should then show up in the UI.Chris White
env | grep PREFECT
Jason Wiener
10/02/2023, 3:06 PMactive = "eks"
[profiles.eks]
PREFECT_SERVER_API_HOST = "127.0.0.1"
PREFECT_SERVER_API_PORT = "43654"
with
kubectl port-forward svc/prefect-server -n prefect-dev 43654:4200
running in the background.
I can connect to the Prefect server dashboard in a web browser through the ingress configured on the cluster (and this method shows a server with access to the API) and also through the forwarded port on localhost (though the localhost relay does not access the API* but I wouldn't expect that since the API should be accessible only to the server except on the forwarded port).
Do I need to be forwarding additional ports from my cluster to my local environment for the local client to work? I don't remember needing to do this for setting up previous deployments in the kube deployment but I might be forgetting something, of course.
Pop-up when visiting the remote server dashboard through on the forwarded port, i.e. :
Can't connect to Server API at <https://zzz.yyy.com/api>. Check that it's accessible from your machine.
Jason Wiener
10/02/2023, 3:15 PMprefect deployment ls
does work as expected when I add PREFECT_API_URL = "<http://127.0.0.1:43654/api>"
to profiles.toml so it seems like specifying the server and port are not sufficient, even though that provides the components for the API URL.