Skip to content

Commit

Permalink
update thanos example rbac
Browse files Browse the repository at this point in the history
  • Loading branch information
kiddo3 committed Oct 3, 2020
1 parent 434f9f7 commit e586769
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
@@ -1,11 +1,11 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
kind: ClusterRoleBinding
metadata:
name: prometheus-self
namespace: default
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
kind: ClusterRole
name: prometheus-self
subjects:
- kind: ServiceAccount
Expand Down
@@ -1,5 +1,5 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
kind: ClusterRole
metadata:
name: prometheus-self
namespace: default
Expand All @@ -8,10 +8,17 @@ rules:
- ""
resources:
- nodes
- nodes/metrics
- services
- endpoints
- pods
verbs:
- get
- list
- watch
- apiGroups: [""]
resources:
- configmaps
verbs: ["get"]
- nonResourceURLs: ["/metrics"]
verbs: ["get"]

0 comments on commit e586769

Please sign in to comment.