Skip to content

Commit

Permalink
Added monitoring role to bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierCazade committed May 4, 2023
1 parent c2c2961 commit 336f3f1
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions config/openshift/monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,34 @@ spec:
selector:
matchLabels:
control-plane: controller-manager
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: openshift-netobserv-operator-prometheus
namespace: openshift-netobserv-operator
rules:
- apiGroups:
- ""
resources:
- services
- endpoints
- pods
verbs:
- get
- list
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: openshift-netobserv-operator-prometheus
namespace: openshift-netobserv-operator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: openshift-netobserv-operator-prometheus
subjects:
- kind: ServiceAccount
name: prometheus-k8s
namespace: openshift-monitoring

0 comments on commit 336f3f1

Please sign in to comment.