1
0
Fork 0
home-stack-kustomize/kustomize/bases/prometheus/prometheus-rbac.yaml

42 lines
758 B
YAML
Raw Normal View History

2021-08-27 19:57:29 +00:00
apiVersion: rbac.authorization.k8s.io/v1
2020-05-18 18:55:58 +00:00
kind: ClusterRole
metadata:
name: prometheus
rules:
- apiGroups: [""]
resources:
- nodes
- nodes/metrics
- services
- endpoints
- pods
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources:
- configmaps
verbs: ["get"]
2021-08-27 19:57:29 +00:00
- apiGroups:
- networking.k8s.io
resources:
- ingresses
verbs: ["get", "list", "watch"]
2020-05-18 18:55:58 +00:00
- nonResourceURLs: ["/metrics"]
verbs: ["get"]
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: prometheus
---
2021-08-27 19:57:29 +00:00
apiVersion: rbac.authorization.k8s.io/v1
2020-05-18 18:55:58 +00:00
kind: ClusterRoleBinding
metadata:
name: prometheus
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: prometheus
subjects:
- kind: ServiceAccount
name: prometheus
namespace: default