Skip to content

docs(cncf-kubernetes): add RBAC guide for Kubernetes integration - #53540

Closed
yranjan06 wants to merge 4 commits into
apache:mainfrom
yranjan06:docs/add-k8s-rbac-info
Closed

yranjan06 wants to merge 4 commits into
apache:mainfrom
yranjan06:docs/add-k8s-rbac-info

Conversation

@yranjan06

Copy link
Copy Markdown

Summary

This PR adds a new documentation page (rbac.rst) under the apache-airflow-providers-cncf-kubernetes provider. It provides:

  • A beginner-friendly explanation of why RBAC is needed in Kubernetes
  • A working example of Role, RoleBinding, and ServiceAccount for use with KubernetesExecutor and KubernetesPodOperator
  • A real-world snippet from the official Airflow Helm chart
  • Pointers to other related docs (kubernetes_executor, operators, and Helm chart)

Motivation

While the Kubernetes integration is well-documented technically, many first-time users struggle with getting the correct permissions (RBAC) configured. This guide offers a clear starting point with context and working YAML snippets.

Related Resources


Let me know if you'd like any changes — happy to improve this further 🙌

@boring-cyborg

boring-cyborg Bot commented Jul 19, 2025

Copy link
Copy Markdown

Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide (https://github.com/apache/airflow/blob/main/contributing-docs/README.rst)
Here are some useful points:

  • Pay attention to the quality of your code (ruff, mypy and type annotations). Our pre-commits will help you with that.
  • In case of a new feature add useful documentation (in docstrings or in docs/ directory). Adding a new operator? Check this short guide Consider adding an example DAG that shows how users should use it.
  • Consider using Breeze environment for testing locally, it's a heavy docker but it ships with a working Airflow and a lot of integrations.
  • Be patient and persistent. It might take some time to get a review or get the final approval from Committers.
  • Please follow ASF Code of Conduct for all communication including (but not limited to) comments on Pull Requests, Mailing list and Slack.
  • Be sure to read the Airflow Coding style.
  • Always keep your Pull Requests rebased, otherwise your build might fail due to changes not related to your commits.
    Apache Airflow is a community-driven project and together we are making it better 🚀.
    In case of doubts contact the developers at:
    Mailing List: [email protected]
    Slack: https://s.apache.org/airflow-slack

@boring-cyborg boring-cyborg Bot added area:providers kind:documentation provider:cncf-kubernetes Kubernetes (k8s) provider related issues labels Jul 19, 2025

@shahar1 shahar1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I'll be happy for an additional review

@yranjan06

Copy link
Copy Markdown
Author

Thanks a lot @shahar1 , I appreciate the review. I'll wait for one more review before merging. Let me know if there's anything else you'd suggest !

@potiuk

potiuk commented Jul 19, 2025

Copy link
Copy Markdown
Member

some docs/static checks to fix :(

@eladkal

eladkal commented Jul 25, 2025

Copy link
Copy Markdown
Contributor

There are still doc failures

@github-actions

github-actions Bot commented Sep 9, 2025

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions.

@github-actions github-actions Bot added the stale Stale PRs per the .github/workflows/stale.yml policy file label Sep 9, 2025
@github-actions github-actions Bot closed this Sep 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers kind:documentation provider:cncf-kubernetes Kubernetes (k8s) provider related issues stale Stale PRs per the .github/workflows/stale.yml policy file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants