https://prefect.io logo
Title
r

Raphael Perez

03/24/2023, 3:53 PM
Hello everyone, I'm having an issue deploying a Kubernetes Prefect 2 agent that I'm stuck on. After running a
kubectl -n <my_namespace> apply -f prefect2_agent.yaml
the deployment launches but keeps returning
Response: {'detail': 'Not Found'}
when attempting to connect to the work-queue. Even after manually exec'ing into the deployment pod and running a
prefect cloud login -k $PREFECT_API_KEY
receiving a login confirmation and choosing the correct workspace I cannot interact with any resource. For example running
prefect cloud workspace ls
raise the error
AttributeError: 'NoneType' object has no attribute 'groups'
even though the workspace was correctly set in the cloud login step. If anyone could shine a light where my issue may be I'd be grateful.