Kubernetes · Security & Access
Kubernetes Namespace RBAC
RoleBinding granting a namespaced Role to an application ServiceAccount. This diagram is written in ArchLex and passes Kubernetes provider checks.
Diagram and source
provider k8s
direction LR
validation normal
cluster production {
namespace application {
app_identity: serviceaccount
config_reader: role
access_grant: rolebinding
access_grant -[authorizes]->|grants role| config_reader
access_grant -[authorizes]->|grants to| app_identity
}
}What is in this diagram.
Resources
- app_identity ServiceAccount
- config_reader Role
- access_grant RoleBinding
Relationships
- access_grant authorizes config_reader
- access_grant authorizes app_identity
Boundaries
- cluster production
- namespace application
Render it yourself.
Save the source as k8s-namespace-rbac.arch and render it with the CLI, or ask your agent to adapt it through the ArchLex MCP server.
npx @archlex/cli render k8s-namespace-rbac.arch --output k8s-namespace-rbac.svgRelated examples.
- Cloudflare Tunnel into GCP KubernetesAccess and a managed Tunnel connected to an origin-side cloudflared Deployment, with separate establishment and request flows
- Kubernetes MicroservicesIngress and Services routing to frontend and API Deployments inside a namespace
- Kubernetes Stateful ApplicationService exposing a StatefulSet backed by a PersistentVolumeClaim and PersistentVolume
- Kubernetes Scheduled Batch ProcessingCronJob loading runtime settings from a ConfigMap and credentials from a Secret