Files
kube-prometheus/manifests/kube-state-metrics/kube-state-metrics-cluster-role.yaml
jordanjennings 5a5bfab855 kube-prometheus: Update RBAC for kube-state-metrics
kube-state-metrics needs additional permissions for replicationcontrollers, limitranges, and services (otherwise the API server logs are flooded with RBAC DENY messages)
2017-06-30 08:36:58 -04:00

21 lines
375 B
YAML

apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
name: kube-state-metrics
rules:
- apiGroups: [""]
resources:
- nodes
- pods
- services
- resourcequotas
- replicationcontrollers
- limitranges
verbs: ["list", "watch"]
- apiGroups: ["extensions"]
resources:
- daemonsets
- deployments
- replicasets
verbs: ["list", "watch"]