2017-10-23 06:19:22 +02:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRole
|
|
|
|
metadata:
|
|
|
|
name: kube-state-metrics
|
|
|
|
rules:
|
|
|
|
- apiGroups: [""]
|
|
|
|
resources:
|
|
|
|
- nodes
|
|
|
|
- pods
|
|
|
|
- services
|
|
|
|
- resourcequotas
|
|
|
|
- replicationcontrollers
|
|
|
|
- limitranges
|
|
|
|
- persistentvolumeclaims
|
2018-01-15 17:33:44 +01:00
|
|
|
- persistentvolumes
|
2017-10-23 06:19:22 +02:00
|
|
|
- namespaces
|
2018-01-15 17:33:44 +01:00
|
|
|
- endpoints
|
2017-10-23 06:19:22 +02:00
|
|
|
verbs: ["list", "watch"]
|
|
|
|
- apiGroups: ["extensions"]
|
|
|
|
resources:
|
|
|
|
- daemonsets
|
|
|
|
- deployments
|
|
|
|
- replicasets
|
|
|
|
verbs: ["list", "watch"]
|
|
|
|
- apiGroups: ["apps"]
|
|
|
|
resources:
|
|
|
|
- statefulsets
|
|
|
|
verbs: ["list", "watch"]
|
|
|
|
- apiGroups: ["batch"]
|
|
|
|
resources:
|
|
|
|
- cronjobs
|
|
|
|
- jobs
|
|
|
|
verbs: ["list", "watch"]
|
2018-01-15 17:33:44 +01:00
|
|
|
- apiGroups: ["autoscaling"]
|
|
|
|
resources:
|
|
|
|
- horizontalpodautoscalers
|
|
|
|
verbs: ["list", "watch"]
|