Changed the service name and added even more permissions.

This commit is contained in:
Adam Saleh 2021-03-17 14:38:17 +01:00
parent 725fcf76ce
commit fac52a1f1f
2 changed files with 15 additions and 2 deletions

View file

@ -3,6 +3,18 @@ kind: ClusterRole
metadata: metadata:
name: prometheus name: prometheus
rules: rules:
- apiGroups:
- authentication.k8s.io
resources:
- tokenreviews
verbs:
- create
- apiGroups:
- authorization.k8s.io
resources:
- subjectaccessreviews
verbs:
- create
- apiGroups: [""] - apiGroups: [""]
resources: resources:
- nodes - nodes
@ -13,6 +25,7 @@ rules:
- apiGroups: [""] - apiGroups: [""]
resources: resources:
- configmaps - configmaps
- namespaces # Required to get through the alertmanager oauth proxy
verbs: ["get"] verbs: ["get"]
- nonResourceURLs: ["*"] - nonResourceURLs: ["*"]
verbs: ["get"] verbs: ["get"]

View file

@ -3,11 +3,11 @@ kind: ServiceMonitor
metadata: metadata:
labels: labels:
monitoring-key: 'cpe' monitoring-key: 'cpe'
name: bodhi-web name: bodhi-service
spec: spec:
endpoints: endpoints:
- path: /metrics - path: /metrics
port: web port: web
selector: selector:
matchLabels: matchLabels:
service: web app: bodhi