Skip to content

Commit

Permalink
Merge pull request #130 from sttts/sttts-manifest-servicemonitor-rbac
Browse files Browse the repository at this point in the history
monitoring: move service monitor RBAC rules to manifests/
  • Loading branch information
openshift-merge-robot committed Nov 28, 2019
2 parents 10fc162 + a9b80bd commit fe00f63
Showing 1 changed file with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,34 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: prometheus-k8s
namespace: openshift-controller-manager
rules:
- apiGroups:
- ""
resources:
- services
- endpoints
- pods
verbs:
- get
- list
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: prometheus-k8s
namespace: openshift-controller-manager
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: prometheus-k8s
subjects:
- kind: ServiceAccount
name: prometheus-k8s
namespace: openshift-monitoring
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
Expand Down

0 comments on commit fe00f63

Please sign in to comment.