Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions monitoring/grafana/grafana_instance.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: grafana
namespace: grafana
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: grafana-operator-update
namespace: grafana
rules:
- apiGroups: ["grafana.integreatly.org"]
resources: ["grafanas"]
verbs: ["update"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: grafana-operator-update
namespace: grafana
subjects:
- kind: ServiceAccount
name: grafana-operator-controller-manager
namespace: grafana
roleRef:
kind: Role
name: grafana-operator-update
apiGroup: rbac.authorization.k8s.io
---
apiVersion: grafana.integreatly.org/v1beta1
kind: Grafana
metadata:
Expand All @@ -15,5 +45,6 @@ spec:
spec:
template:
spec:
serviceAccountName: grafana
nodeSelector:
node-role.kubernetes.io/infra: ""