Nikhil
02/20/2024, 9:51 PMprefect-workerprefectHTTP response headers: HTTPHeaderDict({'Audit-Id': '4aef1bac-3ddd-48bc-b6b6-ebad7ab73681', 'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'X-Content-Type-Options': 'nosniff', 'X-Kubernetes-Pf-Flowschema-Uid': '88858464-1407-40fe-a4f0-2b5d0ca28530', 'X-Kubernetes-Pf-Prioritylevel-Uid': 'a5d8367f-efbd-4fd3-9d0e-7cfb054ddcf6', 'Date': 'Tue, 20 Feb 2024 20:50:00 GMT', 'Content-Length': '290'})
HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"jobs.batch is forbidden: User \"system:anonymous\" cannot create resource \"jobs\" in API group \"batch\" in the namespace \"prefect\"","reason":"Forbidden","details":{"group":"batch","kind":"jobs"},"code":403}Marvin
02/20/2024, 9:51 PMI'm running into an issue when running a flow on GKE (GCP Kubernetes), which looks to be a permissions issue. I'm using a custom service account and a```HTTP response headers: HTTPHeaderDict({'Audit-Id': '4aef1bac-3ddd-48bc-b6b6-ebad7ab73681', 'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'X-Content-Type-Options': 'nosniff', 'X-Kubernetes-Pf-Flowschema-Uid': '88858464-1407-40fe-a4f0-2b5d0ca28530', 'X-Kubernetes-Pf-Prioritylevel-Uid': 'a5d8367f-efbd-4fd3-9d0e-7cfb054ddcf6', 'Date': 'Tue, 20 Feb 2024 205000 GMT', 'Content-Length': '290'}) HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"jobs.batch is forbidden: User \"system:anonymous\" cannot create resource \"jobs\" in API group \"batch\" in the namespace \"prefect\"","reason":"Forbidden","details":{"group":"batch","kind":"jobs"},"code":403workload in theprefect-workernamespace. Any ideas on any solutions?prefect
Nikhil
02/20/2024, 9:52 PMprefect-workerprefectHTTP response headers: HTTPHeaderDict({'Audit-Id': '4aef1bac-3ddd-48bc-b6b6-ebad7ab73681', 'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'X-Content-Type-Options': 'nosniff', 'X-Kubernetes-Pf-Flowschema-Uid': '88858464-1407-40fe-a4f0-2b5d0ca28530', 'X-Kubernetes-Pf-Prioritylevel-Uid': 'a5d8367f-efbd-4fd3-9d0e-7cfb054ddcf6', 'Date': 'Tue, 20 Feb 2024 20:50:00 GMT', 'Content-Length': '290'})
HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"jobs.batch is forbidden: User \"system:anonymous\" cannot create resource \"jobs\" in API group \"batch\" in the namespace \"prefect\"","reason":"Forbidden","details":{"group":"batch","kind":"jobs"},"code":403}Marvin
02/20/2024, 9:52 PMprefectprefect-workerbatchprefectkubectlprefect-workerserviceAccountNameNikhil
02/20/2024, 10:45 PMhelm install prefect-worker prefect/prefect-worker \ --namespace=prefect \ -f prefect_helm_values.yamlMarvin
02/20/2024, 10:46 PMprefect-workerprefectdefaultprefectprefectkubectl get rolekubectl get rolebinding -n prefectprefect-workerprefect_helm_values.yamlprefectNikhil
02/20/2024, 10:58 PMHTTP response headers: HTTPHeaderDict({'Audit-Id': '195f3cb0-a790-4303-a2b2-c941a96c36b3', 'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'X-Content-Type-Options': 'nosniff', 'X-Kubernetes-Pf-Flowschema-Uid': '88858464-1407-40fe-a4f0-2b5d0ca28530', 'X-Kubernetes-Pf-Prioritylevel-Uid': 'a5d8367f-efbd-4fd3-9d0e-7cfb054ddcf6', 'Date': 'Tue, 20 Feb 2024 22:55:23 GMT', 'Content-Length': '290'})
HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"jobs.batch is forbidden: User \"system:anonymous\" cannot create resource \"jobs\" in API group \"batch\" in the namespace \"default\"","reason":"Forbidden","details":{"group":"batch","kind":"jobs"},"code":403}'Marvin
02/20/2024, 10:58 PMprefectdefaultsystem:anonymoussystem:anonymouskubectl get saserviceAccountName