This replaces any uses of `rbac.authorization.k8s.io/v1beta1` with `rbac.authorization.k8s.io/v1` affecting RBAC objects like ClusterRole and ClusterRoleBindings, etc. to make it consistent. This is done as some RBAC objects used the `v1beta1` and others already using `v1`. Signed-off-by: Alexander Trost <galexrt@googlemail.com>
73 lines
1.4 KiB
YAML
73 lines
1.4 KiB
YAML
---
|
|
# OLM: BEGIN ROLE
|
|
# Aspects for creation of monitoring resources
|
|
kind: Role
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
metadata:
|
|
name: rook-ceph-monitor
|
|
namespace: rook-ceph
|
|
rules:
|
|
- apiGroups:
|
|
- monitoring.coreos.com
|
|
resources:
|
|
- '*'
|
|
verbs:
|
|
- '*'
|
|
# OLM: END ROLE
|
|
---
|
|
# OLM: BEGIN ROLE BINDING
|
|
# Allow creation of monitoring resources
|
|
kind: RoleBinding
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
metadata:
|
|
name: rook-ceph-monitor
|
|
namespace: rook-ceph
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: Role
|
|
name: rook-ceph-monitor
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: rook-ceph-system
|
|
namespace: rook-ceph
|
|
# OLM: END ROLE BINDING
|
|
---
|
|
# OLM: BEGIN ROLE
|
|
# Aspects for metrics collection
|
|
kind: Role
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
metadata:
|
|
name: rook-ceph-metrics
|
|
namespace: rook-ceph
|
|
rules:
|
|
- apiGroups:
|
|
- ""
|
|
resources:
|
|
- services
|
|
- endpoints
|
|
- pods
|
|
verbs:
|
|
- get
|
|
- list
|
|
- watch
|
|
# OLM: END ROLE
|
|
---
|
|
# OLM: BEGIN ROLE BINDING
|
|
# Allow collection of metrics
|
|
kind: RoleBinding
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
metadata:
|
|
name: rook-ceph-metrics
|
|
namespace: rook-ceph
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: Role
|
|
name: rook-ceph-metrics
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
# change to the serviceaccount and namespace to use for monitoring
|
|
name: prometheus-k8s
|
|
namespace: rook-ceph
|
|
# OLM: END ROLE BINDING
|
|
---
|