Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- apiVersion: rbac.authorization.k8s.io/v1
- kind: ClusterRole
- metadata:
- # "namespace" omitted since ClusterRoles are not namespaced
- name: role-dashboard-secret-reader
- rules:
- - apiGroups: [""]
- resources: ["secrets"]
- verbs: ["get", "watch", "list"]
- ---
- apiVersion: rbac.authorization.k8s.io/v1
- kind: ClusterRoleBinding
- metadata:
- name: clusterrole-dashboard-secret-reader
- namespace: default
- subjects:
- - kind: User
- name: system:serviceaccount:default:*
- apiGroup: rbac.authorization.k8s.io
- roleRef:
- kind: ClusterRole #this must be Role or ClusterRole
- name: role-dashboard-secret-reader # this must match the name of the Role or ClusterRole you wish to bind to
- apiGroup: rbac.authorization.k8s.io
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement