Leon Kozlowski
12/01/2021, 2:49 PMLeon Kozlowski
12/01/2021, 2:49 PM"Failure","message":"jobs.batch is forbidden: User \"system:serviceaccount:default:prefect-agent\" cannot create resource \"jobs\" in API group \"batch\" in the namespace \"default\"","reason":"Forbidden","details":{"group":"batch","kind":"jobs"},"code":403}
Kevin Kho
- name: SERVICE_ACCOUNT_NAME
value: ''
Leon Kozlowski
12/01/2021, 3:09 PMAnna Geller
prefect agent kubernetes install >> k8s.yaml
Leon Kozlowski
12/01/2021, 3:10 PMkubectl auth can-i --as=system:serviceaccount:default:prefect-agent create jobs -n default
this yields no
Leon Kozlowski
12/01/2021, 4:48 PMsubjects:
- kind: ServiceAccount
name: default
in the RoleBinding?Kevin Kho
Leon Kozlowski
12/01/2021, 5:39 PMTyler Wanner
12/01/2021, 5:40 PMLeon Kozlowski
12/01/2021, 5:56 PMrolebinding.yaml
subjects:
- kind: ServiceAccount
name: {{ include "<CHART_NAME>.fullname" . }}
Removed the 403 error I was gettingLeon Kozlowski
12/01/2021, 5:56 PMLeon Kozlowski
12/01/2021, 5:57 PMserviceaccount.yaml
- so it inherits from the chart fullname