Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Update kube-state-metrics to the latest version
Browse files Browse the repository at this point in the history
Signed-off-by: Mattias Gees <mattias.gees@gmail.com>
  • Loading branch information
MattiasGees committed Feb 21, 2019
1 parent 096eb34 commit 313c6d4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion puppet/modules/prometheus/manifests/kube_state_metrics.pp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class prometheus::kube_state_metrics (
String $image = 'gcr.io/google_containers/kube-state-metrics',
String $version = '1.4.0',
String $version = '1.5.0',
String $resizer_image = 'gcr.io/google_containers/addon-resizer',
String $resizer_version = '1.8.4',
){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,26 +99,31 @@ metadata:
rules:
- apiGroups: [""]
resources:
- configmaps
- secrets
- nodes
- pods
- services
- resourcequotas
- replicationcontrollers
- limitranges
- persistentvolumeclaims
- persistentvolumes
- namespaces
- endpoints
- persistentvolumes
- horizontalpodautoscalers
verbs: ["list", "watch"]
- apiGroups: ["extensions"]
resources:
- daemonsets
- deployments
- replicasets
- ingresses
verbs: ["list", "watch"]
- apiGroups: ["apps"]
resources:
- daemonsets
- deployments
- replicasets
- statefulsets
verbs: ["list", "watch"]
- apiGroups: ["batch"]
Expand All @@ -130,6 +135,10 @@ rules:
resources:
- horizontalpodautoscalers
verbs: ["list", "watch"]
- apiGroups: ["policy"]
resources:
- poddisruptionbudgets
verbs: ["list", "watch"]
---
<%- if @version_before_1_6 -%>
apiVersion: rbac.authorization.k8s.io/v1alpha1
Expand Down Expand Up @@ -167,6 +176,11 @@ rules:
resources:
- pods
verbs: ["get"]
- apiGroups: ["apps"]
resources:
- deployments
resourceNames: ["kube-state-metrics"]
verbs: ["get", "update"]
- apiGroups: ["extensions"]
resources:
- deployments
Expand Down

0 comments on commit 313c6d4

Please sign in to comment.