SHARE
TWEET

Untitled

a guest Jul 21st, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. kind: ClusterRole
  2. apiVersion: rbac.authorization.k8s.io/v1
  3. metadata:
  4.   namespace: default
  5.   name: service-reader
  6. rules:
  7. - apiGroups: ["", "extensions"] # "" indicates the core API group
  8.   resources: ["services", "endpoints", "nodes", "secrets", "ingresses", "configmaps", "events"]
  9.   verbs: ["get", "watch", "list", "create", "update"]
  10. ---
  11. apiVersion: rbac.authorization.k8s.io/v1
  12. kind: ClusterRoleBinding
  13. metadata:
  14.   name: service-reader-binding
  15. roleRef:
  16.   apiGroup: rbac.authorization.k8s.io
  17.   kind: ClusterRole
  18.   name: service-reader
  19. subjects:
  20. - kind: Group
  21.   name: system:serviceaccounts
  22.   apiGroup: rbac.authorization.k8s.io
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top