You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This can be useful for scenarios where additional jobs need to be scheduled or managed as part of an Airflow deployment. For example, workflows might spawn Kubernetes jobs for specific tasks outside the Airflow ecosystem.
What do you see instead?
kubernetes.client.exceptions.ApiException: (403)
Reason: Forbidden
HTTP response headers: HTTPHeaderDict({'Audit-Id': '6760a41c-f165-436f-b817-d354a5af13b8', 'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'X-Content-Type-Options': 'nosniff', 'X-Kubernetes-Pf-Flowschema-Uid': '91e0e32e-d27c-44e4-bb42-f6c4440372c0', 'X-Kubernetes-Pf-Prioritylevel-Uid': '980f753d-da38-40ee-b95b-e7209628fdcf', 'Date': 'Thu, 05 Dec 2024 13:40:30 GMT', 'Content-Length': '319'})
HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"jobs.batch is forbidden: User \"system:serviceaccount:app-airflow:airflow\" cannot create resource \"jobs\" in API group \"batch\" in the namespace \"app-airflow\"","reason":"Forbidden","details":{"group":"batch","kind":"jobs"},"code":403}
[2024-12-05T13:40:30.510+0000] {local_task_job_runner.py:266} INFO - Task exited with return code 1
[2024-12-05T13:40:30.668+0000] {taskinstance.py:3895} INFO - 0 downstream tasks scheduled from follow-on schedule check
[2024-12-05T13:40:30.677+0000] {local_task_job_runner.py:245} INFO - ::endgroup::
Additional information
To resolve this, I propose adding the necessary rules to the Role or ClusterRole template to support Job resources.
Proposed Changes
In the templates/rbac/role.yaml file, add permissions for the Job resource:
Thank you for bringing this issue to our attention. We appreciate your involvement! If you're interested in contributing a solution, we welcome you to create a pull request. The Bitnami team is excited to review your submission and offer feedback. You can find the contributing guidelines here.
Your contribution will greatly benefit the community. Feel free to reach out if you have any questions or need assistance.
Thank you for your contribution! Please note that due to the Christmas holidays, there might be a delay in the usual cadence of the team reviewing community Pull Requests. We appreciate your patience and understanding during this time, and we'll get back to your submission as soon as possible.
Name and Version
bitnami/airflow:latest
What architecture are you using?
None
What steps will reproduce the bug?
Hello Bitnami Team,
I am currently using the [Airflow chart](https://github.com/bitnami/charts/tree/main/bitnami/airflow) and noticed that the default RBAC configuration does not include permissions for managing Kubernetes
Job
resources.This can be useful for scenarios where additional jobs need to be scheduled or managed as part of an Airflow deployment. For example, workflows might spawn Kubernetes jobs for specific tasks outside the Airflow ecosystem.
What do you see instead?
Additional information
To resolve this, I propose adding the necessary rules to the
Role
orClusterRole
template to supportJob
resources.Proposed Changes
In the
templates/rbac/role.yaml
file, add permissions for theJob
resource:This change would allow Airflow pods to interact with
Job
resources if necessary.Benefits
The text was updated successfully, but these errors were encountered: