Skip to content

Instantly share code, notes, and snippets.

@CalvinHartwell
Last active October 25, 2018 16:49
Show Gist options
  • Save CalvinHartwell/b1623b14194d1af89ac74c82ff36b11a to your computer and use it in GitHub Desktop.
Save CalvinHartwell/b1623b14194d1af89ac74c82ff36b11a to your computer and use it in GitHub Desktop.
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: prometheus
rules:
- apiGroups: ["*"]
resources:
- nodes
- nodes/proxy
- services
- endpoints
- pods
verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: prometheus-crb
subjects:
- kind: ServiceAccount
name: default
namespace: default
roleRef:
kind: ClusterRole
name: prometheus
apiGroup: rbac.authorization.k8s.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment