kube-state-metrics-clusterrole.yaml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. ---
  2. # Source: loki-stack/charts/prometheus/templates/kube-state-metrics-clusterrole.yaml
  3. apiVersion: rbac.authorization.k8s.io/v1beta1
  4. kind: ClusterRole
  5. metadata:
  6. labels:
  7. component: "kube-state-metrics"
  8. app: prometheus
  9. release: loki
  10. chart: prometheus-9.3.1
  11. heritage: Tiller
  12. name: loki-prometheus-kube-state-metrics
  13. rules:
  14. - apiGroups:
  15. - ""
  16. resources:
  17. - namespaces
  18. - nodes
  19. - persistentvolumeclaims
  20. - pods
  21. - services
  22. - resourcequotas
  23. - replicationcontrollers
  24. - limitranges
  25. - persistentvolumeclaims
  26. - persistentvolumes
  27. - endpoints
  28. - secrets
  29. - configmaps
  30. verbs:
  31. - list
  32. - watch
  33. - apiGroups:
  34. - extensions
  35. resources:
  36. - daemonsets
  37. - deployments
  38. - ingresses
  39. - replicasets
  40. verbs:
  41. - list
  42. - watch
  43. - apiGroups:
  44. - apps
  45. resources:
  46. - daemonsets
  47. - deployments
  48. - statefulsets
  49. verbs:
  50. - get
  51. - list
  52. - watch
  53. - apiGroups:
  54. - batch
  55. resources:
  56. - cronjobs
  57. - jobs
  58. verbs:
  59. - list
  60. - watch
  61. - apiGroups:
  62. - autoscaling
  63. resources:
  64. - horizontalpodautoscalers
  65. verbs:
  66. - list
  67. - watch
  68. - apiGroups:
  69. - policy
  70. resources:
  71. - poddisruptionbudgets
  72. verbs:
  73. - list
  74. - watch
  75. - apiGroups:
  76. - certificates.k8s.io
  77. resources:
  78. - certificatesigningrequests
  79. verbs:
  80. - list
  81. - watch