--- # Source: loki-stack/charts/prometheus/templates/kube-state-metrics-clusterrole.yaml apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRole metadata: labels: component: "kube-state-metrics" app: prometheus release: loki chart: prometheus-9.3.1 heritage: Tiller name: loki-prometheus-kube-state-metrics rules: - apiGroups: - "" resources: - namespaces - nodes - persistentvolumeclaims - pods - services - resourcequotas - replicationcontrollers - limitranges - persistentvolumeclaims - persistentvolumes - endpoints - secrets - configmaps verbs: - list - watch - apiGroups: - extensions resources: - daemonsets - deployments - ingresses - replicasets verbs: - list - watch - apiGroups: - apps resources: - daemonsets - deployments - statefulsets verbs: - get - list - watch - apiGroups: - batch resources: - cronjobs - jobs verbs: - list - watch - apiGroups: - autoscaling resources: - horizontalpodautoscalers verbs: - list - watch - apiGroups: - policy resources: - poddisruptionbudgets verbs: - list - watch - apiGroups: - certificates.k8s.io resources: - certificatesigningrequests verbs: - list - watch