Skip to content

Commit

Permalink
Update prometheus rbac file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Donyintao committed Mar 5, 2018
1 parent b83865e commit 88a8b6c
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions prometheus-rbac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: prometheus
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: prometheus
subjects:
- kind: ServiceAccount
name: prometheus
namespace: monitoring
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: prometheus
rules:
- apiGroups: [""]
resources:
- nodes
- services
- endpoints
- pods
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources:
- configmaps
verbs: ["get"]
- nonResourceURLs: ["/metrics"]
verbs: ["get"]
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: prometheus
namespace: monitoring

0 comments on commit 88a8b6c

Please sign in to comment.