Hi all I am trying to deploy prefect-agent on a lo...
# ask-community
m
Hi all I am trying to deploy prefect-agent on a local kubernetes cluster
prefect.utilities.exceptions.AuthorizationError: [{'path': ['auth_info'], 'message': 'AuthenticationError: Forbidden', 'extensions': {'code': 'UNAUTHENTICATED'}}]
I am unsure on how to set up the yaml variables:
Copy code
- name: PREFECT__CLOUD__AGENT__AUTH_TOKEN
  value: ''
- name: PREFECT__CLOUD__API
  value: <https://api.prefect.io>
- name: NAMESPACE
  value: default
- name: IMAGE_PULL_SECRETS
  value: ''
- name: PREFECT__CLOUD__AGENT__LABELS
  value: '[]'
- name: JOB_MEM_REQUEST
  value: ''
- name: JOB_MEM_LIMIT
  value: ''
- name: JOB_CPU_REQUEST
  value: ''
- name: JOB_CPU_LIMIT
  value: ''
- name: IMAGE_PULL_POLICY
  value: ''
- name: SERVICE_ACCOUNT_NAME
  value: ''
- name: PREFECT__BACKEND
  value: cloud
- name: PREFECT__CLOUD__AGENT__AGENT_ADDRESS
  value: http://:8080
image: prefecthq/prefect:0.14
specifically the prefect__cloud___agent__address seem to be incorrect. Q: Is there a better documentation on how to set up prefect-agent ?
k
Hi @Matej! this repo might be a good guide
🙂 1
m
If you are running this agent with Prefect Cloud, add service account key to
PREFECT__CLOUD__AGENT__AUTH_TOKEN
. You can create that token in Prefect UI: Team -> Service accounts.