Add wildcard urls to prometheus clusterrole.

This commit is contained in:
Adam Saleh 2021-03-17 11:19:54 +01:00
parent 43f2248de8
commit d5183979c3
2 changed files with 2 additions and 2 deletions

View file

@ -14,5 +14,5 @@ rules:
resources: resources:
- configmaps - configmaps
verbs: ["get"] verbs: ["get"]
- nonResourceURLs: ["/metrics"] - nonResourceURLs: ["*"]
verbs: ["get"] verbs: ["get"]

View file

@ -5,7 +5,7 @@ metadata:
labels: labels:
prometheus: prometheus prometheus: prometheus
spec: spec:
replicas: 2 replicas: 1
serviceAccountName: prometheus serviceAccountName: prometheus
serviceMonitorNamespaceSelector: serviceMonitorNamespaceSelector:
matchLabels: matchLabels: