Skip to content

Commit

Permalink
Merge pull request #2345 from chrischdi/pr-initial-crd-metrics
Browse files Browse the repository at this point in the history
🌱 config: add metrics configuration for kube-state-metrics
  • Loading branch information
k8s-ci-robot authored Sep 12, 2023
2 parents df01a95 + 0b37814 commit a5955a4
Show file tree
Hide file tree
Showing 3 changed files with 710 additions and 0 deletions.
21 changes: 21 additions & 0 deletions config/metrics/crd-clusterrole.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kube-state-metrics-custom-resource-capv
labels:
kube-state-metrics/aggregate-to-manager: "true"
rules:
- apiGroups:
- infrastructure.cluster.x-k8s.io
resources:
- vsphereclusters
- vsphereclusteridentities
- vspheredeploymentzones
- vspherefailuredomains
- vspheremachines
- vspherevms
verbs:
- get
- list
- watch
Loading

0 comments on commit a5955a4

Please sign in to comment.