1
0
mirror of synced 2026-02-07 11:15:57 +00:00

Add Prom+Grafana monitoring stack

This commit is contained in:
stefanprodan
2020-08-04 15:40:38 +03:00
parent 1779714b0d
commit e86286722a
12 changed files with 295 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: prometheus-gitops-system
rules:
- apiGroups: [""]
resources:
- nodes
- services
- endpoints
- pods
- nodes/proxy
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources:
- configmaps
verbs: ["get"]
- nonResourceURLs: ["/metrics"]
verbs: ["get"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: prometheus-gitops-system
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: prometheus-gitops-system
subjects:
- kind: ServiceAccount
name: prometheus
namespace: gitops-system