Skip to content

Instantly share code, notes, and snippets.

@tanan
Last active March 15, 2018 06:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tanan/c22d0adfc8ef6adc968992e612709acf to your computer and use it in GitHub Desktop.
Save tanan/c22d0adfc8ef6adc968992e612709acf to your computer and use it in GitHub Desktop.
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