Alex Shea
08/11/2022, 2:36 PMUser \"system:serviceaccount:prefect:prefect-agent\" cannot create resource \"jobs\" in API group \"batch\" in the namespace \"prefect\"
I as you might be able to tell, I have the prefect agent running in the prefect namespace. I have a service account for it called prefect agent. I have used the role and rolebinding from the prefect documentation, but updated the namespace on both and the service account name from default to prefect -agent.Khuyen Tran
08/11/2022, 2:37 PMChristopher Boyd
08/11/2022, 2:39 PMapiVersion: <http://rbac.authorization.k8s.io/v1|rbac.authorization.k8s.io/v1>
kind: RoleBinding
metadata:
name: flow-runner-role-binding
namespace: default
subjects:
- kind: ServiceAccount
name: default
namespace: default
roleRef:
kind: Role
name: flow-runner
apiGroup: <http://rbac.authorization.k8s.io|rbac.authorization.k8s.io>
Alex Shea
08/11/2022, 2:41 PMChristopher Boyd
08/11/2022, 2:42 PMAlex Shea
08/11/2022, 2:42 PMChristopher Boyd
08/11/2022, 8:59 PM