现象: Failed to watch *v1.Endpoints: failed to list *v1.Endpoints: endpoints is forbidden: User \"system:serviceaccount:monitoring:prometheus-k8s\" cannot list resource \"endpoints\" in API group \"\" at the cluster scope"

clusterrole 权限配置如下:

- apiGroups:
   - " "
   resources:
   - nodes
   - services
   - endpoints
   - pods
   - nodes/proxy
   verbs:
   - get
   - list
   - watch

posted on 2022-10-16 16:10  MhaiM  阅读(608)  评论(0编辑  收藏  举报