mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
docs
This commit is contained in:
parent
87037d8354
commit
00388f021c
@ -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.
|
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
|
||||||
|
```
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user