Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. ---
  2. apiVersion: rbac.authorization.k8s.io/v1
  3. kind: ClusterRole
  4. metadata:
  5. # "namespace" omitted since ClusterRoles are not namespaced
  6. name: role-dashboard-secret-reader
  7. rules:
  8. - apiGroups: [""]
  9. resources: ["secrets"]
  10. verbs: ["get", "watch", "list"]
  11. ---
  12. apiVersion: rbac.authorization.k8s.io/v1
  13. kind: ClusterRoleBinding
  14. metadata:
  15. name: clusterrole-dashboard-secret-reader
  16. namespace: default
  17. subjects:
  18. - kind: User
  19. name: system:serviceaccount:default:*
  20. apiGroup: rbac.authorization.k8s.io
  21. roleRef:
  22. kind: ClusterRole #this must be Role or ClusterRole
  23. name: role-dashboard-secret-reader # this must match the name of the Role or ClusterRole you wish to bind to
  24. apiGroup: rbac.authorization.k8s.io
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement