Read only cluster role for Lens read only users
✓ Published0🌍 Public
TThanad
Last edited Jan 27, 2022
Created on Jan 27, 2022
This example visualizes a Kubernetes RBAC configuration by defining a `ClusterRole` named `read-only-clusterrole` for Lens read-only users. It shows the explicit mapping of permitted API groups, resources, and HTTP verbs—using `get`, `list`, and `watch`—across a broad set of Kubernetes object types. The YAML file enumerates resources such as pods, deployments, services, and custom endpoints, specifying non-resource URLs like `/metrics`. The code relies on the Kubernetes RBAC API schema to structure permissions, rendering a declarative security policy that restricts access to read-only operations. This illustrates how fine-grained access control is encoded using YAML syntax within a Kubernetes cluster role definition.
AI-generated description