Guest User

Untitled

a guest
Sep 21st, 2020
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. ---
  2. apiVersion: rbac.authorization.k8s.io/v1
  3. kind: ClusterRole
  4. metadata:
  5. name: myapp-user-cr
  6. rules:
  7. - apiGroups: [""]
  8. resources: ["namespaces"]
  9. verbs: ["get", "list"]
  10. ---
  11. apiVersion: rbac.authorization.k8s.io/v1
  12. kind: ClusterRoleBinding
  13. metadata:
  14. name: myapp-user-crb
  15. namespace: myapp
  16. subjects:
  17. - kind: ServiceAccount
  18. name: myapp-user
  19. namespace: myapp
  20. roleRef:
  21. kind: ClusterRole
  22. name: myapp-user-cr
  23. apiGroup: rbac.authorization.k8s.io
Advertisement
Add Comment
Please, Sign In to add comment