Changed the service name and added even more permissions.
This commit is contained in:
parent
725fcf76ce
commit
fac52a1f1f
2 changed files with 15 additions and 2 deletions
|
@ -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"]
|
||||||
|
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue