Skip to content

Commit

Permalink
ClusterRoleBinding for grafana-serviceaccount to cluster-monitoring-view
Browse files Browse the repository at this point in the history
  • Loading branch information
computate committed Dec 6, 2023
1 parent 968d127 commit fc1e630
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: grafana-serviceaccount-cluster-monitoring-view
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-monitoring-view
subjects:
- kind: ServiceAccount
name: grafana-serviceaccount
namespace: grafana
5 changes: 5 additions & 0 deletions grafana/base/clusterrolebindings/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- grafana-serviceaccount-cluster-monitoring-view.yaml
1 change: 1 addition & 0 deletions grafana/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ resources:
- operatorgroups
- subscriptions
- routes
- clusterrolebindings
commonLabels:
app.kubernetes.io/name: grafana
app.kubernetes.io/component: grafana
Expand Down

0 comments on commit fc1e630

Please sign in to comment.