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:
name: prometheus
rules:
- apiGroups:
- authentication.k8s.io
resources:
- tokenreviews
verbs:
- create
- apiGroups:
- authorization.k8s.io
resources:
- subjectaccessreviews
verbs:
- create
- apiGroups: [""]
resources:
- nodes
@ -13,6 +25,7 @@ rules:
- apiGroups: [""]
resources:
- configmaps
- namespaces # Required to get through the alertmanager oauth proxy
verbs: ["get"]
- nonResourceURLs: ["*"]
verbs: ["get"]

View file

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