Skip to content

Commit

Permalink
Merge pull request percona#180 from percona/PMM-10907-kube-state-metr…
Browse files Browse the repository at this point in the history
…ics-permissions

PMM-10907 Added RBAC rules for kube-state-metrics
  • Loading branch information
denisok authored Oct 25, 2022
2 parents 2655876 + c7502f9 commit 2cae5a1
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/pmm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: pmm
description: A Helm chart for Percona Monitoring and Management (PMM)
type: application
version: 0.3.9
version: 0.3.10
appVersion: "2.31.0"
home: https://github.com/percona/pmm
maintainers:
Expand Down
71 changes: 70 additions & 1 deletion charts/pmm/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,76 @@ rules:
- podsecuritypolicies
verbs:
- use

# Kube-state-metrics
- apiGroups:
- ""
resources:
- resourcequotas
- replicationcontrollers
- limitranges
- persistentvolumes
- namespaces
- endpoints
verbs:
- list
- watch
- apiGroups:
- apps
resources:
- daemonsets
verbs:
- list
- watch
- apiGroups:
- authentication.k8s.io
resources:
- tokenreviews
verbs:
- create
- apiGroups:
- authorization.k8s.io
resources:
- subjectaccessreviews
verbs:
- create
- apiGroups:
- certificates.k8s.io
resources:
- certificatesigningrequests
verbs:
- list
- watch
- apiGroups:
- storage.k8s.io
resources:
- volumeattachments
verbs:
- list
- watch
- apiGroups:
- admissionregistration.k8s.io
resources:
- mutatingwebhookconfigurations
- validatingwebhookconfigurations
verbs:
- list
- watch
- apiGroups:
- networking.k8s.io
resources:
- networkpolicies
- ingresses
verbs:
- list
- watch
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- list
- watch
# DBaaS
- apiGroups:
- ""
Expand All @@ -685,7 +755,6 @@ rules:
- configmaps/status
- services
- persistentvolumeclaims
- secrets
- nodes
- secrets
- serviceaccounts
Expand Down

0 comments on commit 2cae5a1

Please sign in to comment.