kube-state-metrics-clusterRole.yaml 976 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. apiVersion: rbac.authorization.k8s.io/v1
  2. kind: ClusterRole
  3. metadata:
  4. name: kube-state-metrics
  5. rules:
  6. - apiGroups:
  7. - ""
  8. resources:
  9. - configmaps
  10. - secrets
  11. - nodes
  12. - pods
  13. - services
  14. - resourcequotas
  15. - replicationcontrollers
  16. - limitranges
  17. - persistentvolumeclaims
  18. - persistentvolumes
  19. - namespaces
  20. - endpoints
  21. verbs:
  22. - list
  23. - watch
  24. - apiGroups:
  25. - extensions
  26. resources:
  27. - daemonsets
  28. - deployments
  29. - replicasets
  30. verbs:
  31. - list
  32. - watch
  33. - apiGroups:
  34. - apps
  35. resources:
  36. - statefulsets
  37. - daemonsets
  38. - deployments
  39. - replicasets
  40. verbs:
  41. - list
  42. - watch
  43. - apiGroups:
  44. - batch
  45. resources:
  46. - cronjobs
  47. - jobs
  48. verbs:
  49. - list
  50. - watch
  51. - apiGroups:
  52. - autoscaling
  53. resources:
  54. - horizontalpodautoscalers
  55. verbs:
  56. - list
  57. - watch
  58. - apiGroups:
  59. - authentication.k8s.io
  60. resources:
  61. - tokenreviews
  62. verbs:
  63. - create
  64. - apiGroups:
  65. - authorization.k8s.io
  66. resources:
  67. - subjectaccessreviews
  68. verbs:
  69. - create