1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
This commit is contained in:
Just1689 2020-08-05 10:29:08 +02:00
parent 87037d8354
commit 00388f021c

View File

@ -4,3 +4,19 @@ The read all cluster role found in cluster-role.yaml can be bound to service acc
This is ideal for giving particular users access to a read only user to use in Lens or for dashboards left up in the office.
To use the cluster role bind it to a service account. In the example below we give read all access to the service account called `developer`.
```yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: developer-read-all
subjects:
- kind: ServiceAccount
name: developer
namespace: default
roleRef:
kind: ClusterRole
name: read-all-clusterrole
apiGroup: rbac.authorization.k8s.io
```