Skip to content

Commit

Permalink
Merge pull request #8124 from rook/mergify/bp/release-1.6/pr-8118
Browse files Browse the repository at this point in the history
ceph: Add RBAC for mgr to create service monitor (backport #8118)
  • Loading branch information
travisn committed Jun 14, 2021
2 parents 48b2347 + 0474e35 commit 243f529
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions cluster/examples/kubernetes/ceph/monitoring/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,39 @@ subjects:
namespace: rook-ceph
# OLM: END ROLE BINDING
---
# OLM: BEGIN ROLE
# Allow management of monitoring resources in the mgr
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: rook-ceph-monitor-mgr
namespace: rook-ceph
rules:
- apiGroups:
- monitoring.coreos.com
resources:
- servicemonitors
verbs:
- get
- list
- create
- update
# OLM: END ROLE
---
# OLM: BEGIN ROLE BINDING
# Allow creation of monitoring resources in the mgr
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: rook-ceph-monitor-mgr
namespace: rook-ceph
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: rook-ceph-monitor-mgr
subjects:
- kind: ServiceAccount
name: rook-ceph-mgr
namespace: rook-ceph
# OLM: END ROLE BINDING
---

0 comments on commit 243f529

Please sign in to comment.