[stable/kube-state-metrics] upgrade to 1.6.0 (#13553)

* [stable/kube-state-metrics] Clusterrole: Allow to list resource "daemonsets", "deployments" and "replicasets" in API group "apps"

As of kube-state-metrics version 1.6 it needs to access "daemonsets", "deployments" and "replicasets"
in API group "apps" as well as "extensions"

Signed-off-by: Maxim Filatov <pipopolam@gmail.com>

* [stable/kube-state-metrics] Collectors: enable ingresses collector

Signed-off-by: Maxim Filatov <pipopolam@gmail.com>

* [stable/kube-state-metrics] Collectors: enable certificatesigningrequests collector

Signed-off-by: Maxim Filatov <pipopolam@gmail.com>

* [stable/kube-state-metrics] upgrade to 1.6.0

Signed-off-by: Maxim Filatov <pipopolam@gmail.com>
This commit is contained in:
Maxim Filatov
2019-05-07 01:51:44 -07:00
committed by Kubernetes Prow Robot
parent 9b35c48ee9
commit 0c809258b3
5 changed files with 31 additions and 9 deletions
+2 -2
View File
@@ -5,8 +5,8 @@ keywords:
- metric
- monitoring
- prometheus
version: 1.2.0
appVersion: 1.5.0
version: 1.3.0
appVersion: 1.6.0
home: https://github.com/kubernetes/kube-state-metrics/
sources:
- https://github.com/kubernetes/kube-state-metrics/
+4 -2
View File
@@ -14,8 +14,8 @@ $ helm install stable/kube-state-metrics
| Parameter | Description | Default |
|---------------------------------------|---------------------------------------------------------|---------------------------------------------|
| `image.repository` | The image repository to pull from | k8s.gcr.io/kube-state-metrics |
| `image.tag` | The image tag to pull from | `v1.5.0` |
| `image.repository` | The image repository to pull from | quay.io/coreos/kube-state-metrics |
| `image.tag` | The image tag to pull from | `v1.6.0` |
| `image.pullPolicy` | Image pull policy | IfNotPresent |
| `replicas` | Number of replicas | 1 |
| `service.port` | The port of the container | 8080 |
@@ -35,12 +35,14 @@ $ helm install stable/kube-state-metrics
| `tolerations` | Tolerations for pod assignment | [] |
| `podAnnotations` | Annotations to be added to the pod | {} |
| `resources` | kube-state-metrics resource requests and limits | {} |
| `collectors.certificatesigningrequests` | Enable the certificatesigningrequests collector. | true |
| `collectors.configmaps` | Enable the configmaps collector. | true |
| `collectors.cronjobs` | Enable the cronjobs collector. | true |
| `collectors.daemonsets` | Enable the daemonsets collector. | true |
| `collectors.deployments` | Enable the deployments collector. | true |
| `collectors.endpoints` | Enable the endpoints collector. | true |
| `collectors.horizontalpodautoscalers` | Enable the horizontalpodautoscalers collector. | true |
| `collectors.ingresses` | Enable the ingresses collector. | true |
| `collectors.jobs` | Enable the jobs collector. | true |
| `collectors.limitranges` | Enable the limitranges collector. | true |
| `collectors.namespaces` | Enable the namespaces collector. | true |
@@ -9,6 +9,12 @@ metadata:
release: {{ .Release.Name }}
name: {{ template "kube-state-metrics.fullname" . }}
rules:
{{ if .Values.collectors.certificatesigningrequests }}
- apiGroups: ["certificates.k8s.io"]
resources:
- certificatesigningrequests
verbs: ["list", "watch"]
{{ end -}}
{{ if .Values.collectors.configmaps }}
- apiGroups: [""]
resources:
@@ -22,13 +28,13 @@ rules:
verbs: ["list", "watch"]
{{ end -}}
{{ if .Values.collectors.daemonsets }}
- apiGroups: ["extensions"]
- apiGroups: ["extensions", "apps"]
resources:
- daemonsets
verbs: ["list", "watch"]
{{ end -}}
{{ if .Values.collectors.deployments }}
- apiGroups: ["extensions"]
- apiGroups: ["extensions", "apps"]
resources:
- deployments
verbs: ["list", "watch"]
@@ -45,6 +51,12 @@ rules:
- horizontalpodautoscalers
verbs: ["list", "watch"]
{{ end -}}
{{ if .Values.collectors.ingresses }}
- apiGroups: ["extensions"]
resources:
- ingresses
verbs: ["list", "watch"]
{{ end -}}
{{ if .Values.collectors.jobs }}
- apiGroups: ["batch"]
resources:
@@ -94,7 +106,7 @@ rules:
verbs: ["list", "watch"]
{{ end -}}
{{ if .Values.collectors.replicasets }}
- apiGroups: ["extensions"]
- apiGroups: ["extensions", "apps"]
resources:
- replicasets
verbs: ["list", "watch"]
@@ -32,6 +32,9 @@ spec:
containers:
- name: {{ .Chart.Name }}
args:
{{ if .Values.collectors.certificatesigningrequests }}
- --collectors=certificatesigningrequests
{{ end }}
{{ if .Values.collectors.configmaps }}
- --collectors=configmaps
{{ end }}
@@ -50,6 +53,9 @@ spec:
{{ if .Values.collectors.horizontalpodautoscalers }}
- --collectors=horizontalpodautoscalers
{{ end }}
{{ if .Values.collectors.ingresses }}
- --collectors=ingresses
{{ end }}
{{ if .Values.collectors.jobs }}
- --collectors=jobs
{{ end }}
+4 -2
View File
@@ -1,8 +1,8 @@
# Default values for kube-state-metrics.
prometheusScrape: true
image:
repository: k8s.gcr.io/kube-state-metrics
tag: v1.5.0
repository: quay.io/coreos/kube-state-metrics
tag: v1.6.0
pullPolicy: IfNotPresent
replicas: 1
@@ -74,12 +74,14 @@ podAnnotations: {}
# Available collectors for kube-state-metrics. By default all available
# collectors are enabled.
collectors:
certificatesigningrequests: true
configmaps: true
cronjobs: true
daemonsets: true
deployments: true
endpoints: true
horizontalpodautoscalers: true
ingresses: true
jobs: true
limitranges: true
namespaces: true