rpi.carlosedp.cluster-monit.../manifests-old/kube-state-metrics/kube-state-metrics-cluster-role.yaml
CarlosEDP f36e3d9399 Merge branch 'new-operator'
* new-operator: (30 commits)
  Updated readme
  Update SMTP image version
  Cleanup after merging addon-resizer PR to upstream. Update libs
  Updated README
  Tag arm_exporter to arm64 only nodes
  Fix arm-exporter proxy listen port
  Update Grafana dashboard
  Add CoreDNS dashboard
  Cleanup
  Add Grafana persistence
  Updated dashboard alert
  Added anti-affinity to Prometheus and alertmanager
  Remove example file
  Generate all manifests
  Import all jsonnet files
  Added new config to the config generator. Import Grafana dashboards
  Added MetalLB ServiceMonitor
  Fix Traefik monitor
  Add SMTP relay for Gmail
  Update libs
  ...
2019-02-22 12:43:39 -03:00

46 lines
895 B
YAML

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kube-state-metrics
rules:
- apiGroups: [""]
resources:
- nodes
- pods
- services
- resourcequotas
- replicationcontrollers
- limitranges
- persistentvolumeclaims
- persistentvolumes
- namespaces
- endpoints
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"]
- apiGroups: ["autoscaling"]
resources:
- horizontalpodautoscalers
verbs: ["list", "watch"]
- apiGroups: ["authentication.k8s.io"]
resources:
- tokenreviews
verbs: ["create"]
- apiGroups: ["authorization.k8s.io"]
resources:
- subjectaccessreviews
verbs: ["create"]