https://prefect.io logo
Title
r

redsquare

06/24/2022, 5:28 PM
in prefect cloud 2.0 how do I get the PREFECT_API_URL for the k8's config?
k

Kevin Kho

06/24/2022, 5:35 PM
You can use the workspcae command shown here
r

redsquare

06/24/2022, 5:37 PM
trying to do it via a k8s yaml file
that gets me further along
now permission errors HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"jobs.batch is forbidden: User \"system😒erviceaccount:prefect:default\" cannot create resource \"jobs\" in API group \"batch\" in the namespace \"default\"","reason":"Forbidden","details":{"group":"batch","kind":"jobs"},"code":403}
k

Kevin Kho

06/24/2022, 5:45 PM
This is a prefect 1 doc but I think it shows what you need. You need to to add the permissions to spin up jobs to that default namespace
This is to make an agent right?
r

redsquare

06/24/2022, 5:49 PM
yeah correct
thanks @Kevin Kho