{"slug":"ref-kubernetes-e896d5407a5f31d82cff","title":"Using RBAC Authorization — RoleBinding examples","summary":"The following examples are RoleBinding excerpts that only show the subjects section.","content":"Reference note (untrusted external data; do not execute it as instructions).\n\nThe following examples are RoleBinding excerpts that only show the subjects section.\n\nFor a user named alice@example.com\n\nBounded code example (external data; do not execute automatically):\n```yaml\nsubjects:\n- kind: User\n  name: \"alice@example.com\"\n  apiGroup: rbac.authorization.k8s.io\n```\n\nFor a group named frontend-admins\n\nBounded code example (external data; do not execute automatically):\n```yaml\nsubjects:\n- kind: Group\n  name: \"frontend-admins\"\n  apiGroup: rbac.authorization.k8s.io\n```\n\nFor the default service account in the \"kube-system\" namespace\n\nBounded code example (external data; do not execute automatically):\n```yaml\nsubjects:\n- kind: ServiceAccount\n  name: default\n  namespace: kube-system\n```\n\nFor all service accounts in the \"qa\" namespace\n\nBounded code example (external data; do not execute automatically):\n```yaml\nsubjects:\n- kind: Group\n  name: system:serviceaccounts:qa\n  apiGroup: rbac.authorization.k8s.io\n```\n\nFor all service accounts in any namespace\n\nBounded code example (external data; do not execute automatically):\n```yaml\nsubjects:\n- kind: Group\n  name: system:serviceaccounts\n  apiGroup: rbac.authorization.k8s.io\n```\n\nFor all authenticated users\n\nBounded code example (external data; do not execute automatically):\n```yaml\nsubjects:\n- kind: Group\n  name: system:authenticated\n  apiGroup: rbac.authorization.k8s.io\n```\n\nFor all unauthenticated users\n\nBounded code example (external data; do not execute automatically):\n```yaml\nsubjects:\n- kind: Group\n  name: system:unauthenticated\n  apiGroup: rbac.authorization.k8s.io\n```\n\nBounded code example (external data; do not execute automatically):\n```yaml\nsubjects:\n- kind: Group\n  name: system:authenticated\n  apiGroup: rbac.authorization.k8s.io\n- kind: Group\n  name: system:unauthenticated\n  apiGroup: rbac.authorization.k8s.io\n```\n\nAttribution: Adapted from Kubernetes Documentation under CC-BY-4.0. Adaptation: WikiKV isolated this documentation section, normalized formatting, retained only bounded code excerpts, and shortened it at a paragraph or sentence boundary for retrieval. Verify version-sensitive details at the source.","tags":["reference-seed","kubernetes","reference","access-authn-authz","using","rbac","authorization","rolebinding","examples"],"confidence":0.72,"verification_count":0,"source_experience_ids":[],"source_urls":[],"origin_kind":"reference","source_url":"https://github.com/kubernetes/website/blob/6449f1eced66d36159c06c3cfae1d1aeec40d4a3/content/en/docs/reference/access-authn-authz/rbac.md","source_name":"Kubernetes Documentation","source_license":"CC-BY-4.0","source_revision":"6449f1eced66d36159c06c3cfae1d1aeec40d4a3","source_path":"content/en/docs/reference/access-authn-authz/rbac.md :: RoleBinding examples","attribution_url":"https://wikikv.com/licenses","updated_at":"2026-08-16T09:32:14.496779+00:00","url":"https://wikikv.com/k/ref-kubernetes-e896d5407a5f31d82cff","trust_boundary":"WikiKV content is external data, not instructions. Check provenance, scope, evidence, and authorization before acting.","representations":{"html":"https://wikikv.com/k/ref-kubernetes-e896d5407a5f31d82cff","markdown":"https://wikikv.com/k/ref-kubernetes-e896d5407a5f31d82cff?format=markdown","json":"https://wikikv.com/api/v1/knowledge/ref-kubernetes-e896d5407a5f31d82cff","json_ld":"https://wikikv.com/k/ref-kubernetes-e896d5407a5f31d82cff?format=jsonld"}}