-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Prometheus: apiserver target doesn't work with EKS cluster #553
Comments
problem solve. Just add some rules to prometheus-operator apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: prometheus-operator
namespace: monitoring
rules:
- apiGroups:
- extensions
resources:
- thirdpartyresources
verbs:
- '*'
- apiGroups:
- apiextensions.k8s.io
resources:
- customresourcedefinitions
verbs:
- '*'
- apiGroups:
- monitoring.coreos.com
resources:
- alertmanagers
- prometheuses
- servicemonitors
verbs:
- '*'
- apiGroups:
- apps
resources:
- statefulsets
verbs:
- '*'
- apiGroups:
- ""
resources:
- configmaps
- secrets
verbs:
- '*'
- apiGroups:
- ""
resources:
- pods
verbs:
- watch
- list
- delete
- apiGroups:
- ""
resources:
- services
- endpoints
verbs:
- get
- list
- create
- watch
- update
- apiGroups:
- ""
resources:
- nodes
verbs:
- list
- watch
- apiGroups:
- ""
resources:
- namespaces
verbs:
- list
- apiGroups:
- ""
resources:
- nodes/metrics
verbs:
- get
- nonResourceURLs:
- /metrics
verbs:
- get |
This is not working in AWS EKS, it still throws a forbidden error. |
Even am getting the same error |
apiserver targets return a 403, presumably because EKS doesn't expose a
/metrics
endpoint. Should be called out if this workshop is being adapted for EKS.The text was updated successfully, but these errors were encountered: