2022-05-02 19:05:01 +00:00
|
|
|
---
|
2022-05-11 01:10:22 +00:00
|
|
|
# Source: prometheus/charts/kube-state-metrics/templates/role.yaml
|
2022-05-02 19:05:01 +00:00
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRole
|
|
|
|
metadata:
|
2022-05-11 01:10:22 +00:00
|
|
|
labels:
|
|
|
|
helm.sh/chart: kube-state-metrics-4.7.0
|
|
|
|
app.kubernetes.io/managed-by: Helm
|
|
|
|
app.kubernetes.io/component: metrics
|
|
|
|
app.kubernetes.io/part-of: kube-state-metrics
|
|
|
|
app.kubernetes.io/name: kube-state-metrics
|
|
|
|
app.kubernetes.io/instance: prometheus
|
|
|
|
app.kubernetes.io/version: "2.4.1"
|
|
|
|
name: prometheus-kube-state-metrics
|
2022-05-02 19:05:01 +00:00
|
|
|
rules:
|
2022-05-11 01:10:22 +00:00
|
|
|
|
2022-05-02 19:05:01 +00:00
|
|
|
- apiGroups: ["certificates.k8s.io"]
|
|
|
|
resources:
|
|
|
|
- certificatesigningrequests
|
|
|
|
verbs: ["list", "watch"]
|
2022-05-11 01:10:22 +00:00
|
|
|
|
2022-05-02 19:05:01 +00:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources:
|
|
|
|
- configmaps
|
|
|
|
verbs: ["list", "watch"]
|
2022-05-11 01:10:22 +00:00
|
|
|
|
2022-05-02 19:05:01 +00:00
|
|
|
- apiGroups: ["batch"]
|
|
|
|
resources:
|
|
|
|
- cronjobs
|
|
|
|
verbs: ["list", "watch"]
|
2022-05-11 01:10:22 +00:00
|
|
|
|
2022-05-02 19:05:01 +00:00
|
|
|
- apiGroups: ["extensions", "apps"]
|
|
|
|
resources:
|
|
|
|
- daemonsets
|
|
|
|
verbs: ["list", "watch"]
|
2022-05-11 01:10:22 +00:00
|
|
|
|
2022-05-02 19:05:01 +00:00
|
|
|
- apiGroups: ["extensions", "apps"]
|
|
|
|
resources:
|
|
|
|
- deployments
|
|
|
|
verbs: ["list", "watch"]
|
2022-05-11 01:10:22 +00:00
|
|
|
|
2022-05-02 19:05:01 +00:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources:
|
|
|
|
- endpoints
|
|
|
|
verbs: ["list", "watch"]
|
2022-05-11 01:10:22 +00:00
|
|
|
|
2022-05-02 19:05:01 +00:00
|
|
|
- apiGroups: ["autoscaling"]
|
|
|
|
resources:
|
|
|
|
- horizontalpodautoscalers
|
|
|
|
verbs: ["list", "watch"]
|
2022-05-11 01:10:22 +00:00
|
|
|
|
2022-05-02 19:05:01 +00:00
|
|
|
- apiGroups: ["extensions", "networking.k8s.io"]
|
|
|
|
resources:
|
|
|
|
- ingresses
|
|
|
|
verbs: ["list", "watch"]
|
2022-05-11 01:10:22 +00:00
|
|
|
|
2022-05-02 19:05:01 +00:00
|
|
|
- apiGroups: ["batch"]
|
|
|
|
resources:
|
|
|
|
- jobs
|
|
|
|
verbs: ["list", "watch"]
|
2022-05-11 01:10:22 +00:00
|
|
|
|
2022-05-02 19:05:01 +00:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources:
|
|
|
|
- limitranges
|
|
|
|
verbs: ["list", "watch"]
|
2022-05-11 01:10:22 +00:00
|
|
|
|
2022-05-02 19:05:01 +00:00
|
|
|
- apiGroups: ["admissionregistration.k8s.io"]
|
|
|
|
resources:
|
|
|
|
- mutatingwebhookconfigurations
|
|
|
|
verbs: ["list", "watch"]
|
2022-05-11 01:10:22 +00:00
|
|
|
|
2022-05-02 19:05:01 +00:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources:
|
|
|
|
- namespaces
|
|
|
|
verbs: ["list", "watch"]
|
2022-05-11 01:10:22 +00:00
|
|
|
|
2022-05-02 19:05:01 +00:00
|
|
|
- apiGroups: ["networking.k8s.io"]
|
|
|
|
resources:
|
|
|
|
- networkpolicies
|
|
|
|
verbs: ["list", "watch"]
|
2022-05-11 01:10:22 +00:00
|
|
|
|
2022-05-02 19:05:01 +00:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources:
|
|
|
|
- nodes
|
|
|
|
verbs: ["list", "watch"]
|
2022-05-11 01:10:22 +00:00
|
|
|
|
2022-05-02 19:05:01 +00:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources:
|
|
|
|
- persistentvolumeclaims
|
|
|
|
verbs: ["list", "watch"]
|
2022-05-11 01:10:22 +00:00
|
|
|
|
2022-05-02 19:05:01 +00:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources:
|
|
|
|
- persistentvolumes
|
|
|
|
verbs: ["list", "watch"]
|
2022-05-11 01:10:22 +00:00
|
|
|
|
2022-05-02 19:05:01 +00:00
|
|
|
- apiGroups: ["policy"]
|
|
|
|
resources:
|
|
|
|
- poddisruptionbudgets
|
|
|
|
verbs: ["list", "watch"]
|
2022-05-11 01:10:22 +00:00
|
|
|
|
2022-05-02 19:05:01 +00:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources:
|
|
|
|
- pods
|
|
|
|
verbs: ["list", "watch"]
|
2022-05-11 01:10:22 +00:00
|
|
|
|
2022-05-02 19:05:01 +00:00
|
|
|
- apiGroups: ["extensions", "apps"]
|
|
|
|
resources:
|
|
|
|
- replicasets
|
|
|
|
verbs: ["list", "watch"]
|
2022-05-11 01:10:22 +00:00
|
|
|
|
2022-05-02 19:05:01 +00:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources:
|
|
|
|
- replicationcontrollers
|
|
|
|
verbs: ["list", "watch"]
|
2022-05-11 01:10:22 +00:00
|
|
|
|
2022-05-02 19:05:01 +00:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources:
|
|
|
|
- resourcequotas
|
|
|
|
verbs: ["list", "watch"]
|
2022-05-11 01:10:22 +00:00
|
|
|
|
2022-05-02 19:05:01 +00:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources:
|
|
|
|
- secrets
|
|
|
|
verbs: ["list", "watch"]
|
2022-05-11 01:10:22 +00:00
|
|
|
|
2022-05-02 19:05:01 +00:00
|
|
|
- apiGroups: [""]
|
|
|
|
resources:
|
|
|
|
- services
|
|
|
|
verbs: ["list", "watch"]
|
2022-05-11 01:10:22 +00:00
|
|
|
|
2022-05-02 19:05:01 +00:00
|
|
|
- apiGroups: ["apps"]
|
|
|
|
resources:
|
|
|
|
- statefulsets
|
|
|
|
verbs: ["list", "watch"]
|
2022-05-11 01:10:22 +00:00
|
|
|
|
2022-05-02 19:05:01 +00:00
|
|
|
- apiGroups: ["storage.k8s.io"]
|
|
|
|
resources:
|
|
|
|
- storageclasses
|
|
|
|
verbs: ["list", "watch"]
|
2022-05-11 01:10:22 +00:00
|
|
|
|
2022-05-02 19:05:01 +00:00
|
|
|
- apiGroups: ["admissionregistration.k8s.io"]
|
|
|
|
resources:
|
|
|
|
- validatingwebhookconfigurations
|
|
|
|
verbs: ["list", "watch"]
|
2022-05-11 01:10:22 +00:00
|
|
|
|
2022-05-02 19:05:01 +00:00
|
|
|
- apiGroups: ["storage.k8s.io"]
|
|
|
|
resources:
|
|
|
|
- volumeattachments
|
|
|
|
verbs: ["list", "watch"]
|