← All notes

Helm chart RBAC: keep ServiceAccount settings on their own keys

Answer: This Best Practices Guide chapter covers how RBAC resources are created and formatted in chart manifests.

What to put in values

RBAC resources are: ServiceAccount (namespaced), Role (namespaced), ClusterRole, RoleBinding (namespaced), and ClusterRoleBinding.

Splitting these two concepts out in the YAML disambiguates them and makes this clearer.

RBAC and ServiceAccount configuration should happen under separate keys. They are separate things.

rbac.create specifies whether RBAC resources should be created. serviceAccount.create specifies whether a ServiceAccount should be created.

The name of the ServiceAccount to use should be set. When it is not set and create is true, the fullname template generates a name.

This structure can be extended for more complex charts that require multiple ServiceAccounts.

Defaults and the helper template

Users who wish to manage RBAC access controls themselves can set this value to false.

rbac.create is the boolean that controls whether RBAC resources are created, and the default should be true.

serviceAccount.name should be set to the name of the ServiceAccount used by access-controlled resources created by the chart.

If serviceAccount.create is true, a ServiceAccount with this name should be created. If the name is not set, a name is generated using the fullname template.

If serviceAccount.create is false, the account should not be created, but it should still be associated with the same resources so later manually-created RBAC resources that reference it will function correctly.

When serviceAccount.create is false and no name is specified, the default ServiceAccount is used.

The following helper template should be used for the ServiceAccount, under the name mychart serviceAccountName.

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: The Helm Authors, Role-Based Access Control; The Helm Authors, Role-Based Access Control (source). MIT (https://raw.githubusercontent.com/helm/helm-www/main/LICENSE). Copyright The Helm Authors. Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: The Helm Authors, Role-Based Access Control; The Helm Authors, Role-Based Access Control (source). MIT (https://raw.githubusercontent.com/helm/helm-www/main/LICENSE). Copyright The Helm Authors.

Cite this

Permanent ID: iil:note:yhwgst9x

iinventedlight. 2026. "Helm chart RBAC: keep ServiceAccount settings on their own keys." iinventedlight Library, iil:note:yhwgst9x, version of 2026-11-26. https://iinventedlight.com/library/notes/helm-best-practices-rbac/. License: CC-BY-4.0.

@misc{iil_note_yhwgst9x,
  author = {{iinventedlight}},
  title = {{Helm chart RBAC: keep ServiceAccount settings on their own keys}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-26},
  url = {https://iinventedlight.com/library/notes/helm-best-practices-rbac/},
  note = {Permanent ID iil:note:yhwgst9x. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

Extra files beside this note

These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.

All artifact files (JSON index)

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/helm-best-practices-rbac.md.