I have errors when apply the prefect_agent.yaml, p...
# ask-community
z
a
how did you generate the API key? Are you sure this key is valid? The error suggests that this API key is wrong. I would generate a new API key and enter it here:
Copy code
- name: PREFECT__CLOUD__API_KEY
          value: YOUR_API_KEY
also, you can change this line:
Copy code
apiVersion: <http://rbac.authorization.k8s.io/v1beta1|rbac.authorization.k8s.io/v1beta1>
to this:
Copy code
apiVersion: <http://rbac.authorization.k8s.io/v1|rbac.authorization.k8s.io/v1>
Additionally since you specified:
Copy code
- name: NAMESPACE
          value: prefect
I think you would need to also add it to the kubectl command:
Copy code
kubectl apply -f prefect_agent.yaml -n prefect
z
Thansk Anna. got it running. I misunderstood the api key, instead of the prefect cloud key, I used the ibm cloud key
👍 1