Create a gist now

Instantly share code, notes, and snippets.

@tanan /role.yaml
Last active Mar 15, 2018

Embed
k8s ClusterRole setting
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: all-reader
rules:
- apiGroups:
- ""
resources:
- nodes
- nodes/proxy
- services
- endpoints
- pods
- ingresses
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- apiGroups:
- "extensions"
resources:
- ingresses/status
- ingresses
verbs:
- get
- list
- watch
- nonResourceURLs:
- "/metrics"
verbs:
- get
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment