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 10, 2023
1 parent c2c2961 commit 5db3663
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
31 changes: 31 additions & 0 deletions config/openshift-olm/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
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 5db3663

Please sign in to comment.