Skip to content

Commit

Permalink
Changes for MetricsExporter and PrometheusRules for multicluster
Browse files Browse the repository at this point in the history
In a multi storagecluster scenario, we have to create the following
resources on each of the storagecluster namespaces
a. metrics exporter deployment
b. exporter service and servicemonitor
c. prometheus rules

Signed-off-by: Arun Kumar Mohan <[email protected]>
  • Loading branch information
aruniiird committed Dec 11, 2023
1 parent 2b565e4 commit 8a245d1
Show file tree
Hide file tree
Showing 7 changed files with 691 additions and 66 deletions.
25 changes: 25 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ rules:
- persistentvolumeclaims
- pods
- secrets
- serviceaccounts
- services
verbs:
- '*'
Expand Down Expand Up @@ -190,6 +191,15 @@ rules:
- noobaas
verbs:
- '*'
- apiGroups:
- objectbucket.io
resources:
- objectbucketclaims
- objectbuckets
verbs:
- get
- list
- watch
- apiGroups:
- ocs.openshift.io
resources:
Expand Down Expand Up @@ -276,6 +286,21 @@ rules:
- clusterresourcequotas
verbs:
- '*'
- apiGroups:
- rbac.authorization.k8s.io
resources:
- clusterrolebindings
- clusterroles
- rolebindings
- roles
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- route.openshift.io
resources:
Expand Down
Loading

0 comments on commit 8a245d1

Please sign in to comment.