From 7881f4bd86cb218448a914d391c7383c99f89fee Mon Sep 17 00:00:00 2001 From: Dalton Hubble Date: Sun, 11 Oct 2020 12:34:35 -0700 Subject: [PATCH] Update kube-state-metrics from v1.9.7 to v2.0.0-alpha.1 * https://github.com/kubernetes/kube-state-metrics/releases/tag/v2.0.0-alpha * https://github.com/kubernetes/kube-state-metrics/releases/tag/v2.0.0-alpha.1 --- CHANGES.md | 1 + .../exporters/kube-state-metrics/cluster-role.yaml | 14 +++++++------- .../exporters/kube-state-metrics/deployment.yaml | 6 +++++- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 40b039f5..d94b84b4 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -15,6 +15,7 @@ Notable changes between versions. * Update nginx-ingress from v0.35.0 to [v0.40.2](https://github.com/kubernetes/ingress-nginx/releases/tag/controller-v0.40.2) * Update Grafana from v7.1.5 to [v7.2.0](https://github.com/grafana/grafana/releases/tag/v7.2.0) +* Update kube-state-metrics from v1.9.7 to [v2.0.0-alpha.1](https://github.com/kubernetes/kube-state-metrics/releases/tag/v2.0.0-alpha.1) ## v1.19.2 diff --git a/addons/prometheus/exporters/kube-state-metrics/cluster-role.yaml b/addons/prometheus/exporters/kube-state-metrics/cluster-role.yaml index 9346b9a9..72c48949 100644 --- a/addons/prometheus/exporters/kube-state-metrics/cluster-role.yaml +++ b/addons/prometheus/exporters/kube-state-metrics/cluster-role.yaml @@ -78,13 +78,6 @@ rules: verbs: - list - watch -- apiGroups: - - autoscaling.k8s.io - resources: - - verticalpodautoscalers - verbs: - - list - - watch - apiGroups: - admissionregistration.k8s.io resources: @@ -100,4 +93,11 @@ rules: verbs: - list - watch +- apiGroups: + - coordination.k8s.io + resources: + - leases + verbs: + - list + - watch diff --git a/addons/prometheus/exporters/kube-state-metrics/deployment.yaml b/addons/prometheus/exporters/kube-state-metrics/deployment.yaml index 6e4660b1..f4d48ad6 100644 --- a/addons/prometheus/exporters/kube-state-metrics/deployment.yaml +++ b/addons/prometheus/exporters/kube-state-metrics/deployment.yaml @@ -25,10 +25,12 @@ spec: serviceAccountName: kube-state-metrics containers: - name: kube-state-metrics - image: quay.io/coreos/kube-state-metrics:v1.9.7 + image: quay.io/coreos/kube-state-metrics:v2.0.0-alpha.1 ports: - name: metrics containerPort: 8080 + - name: telemetry + containerPort: 8081 livenessProbe: httpGet: path: /healthz @@ -41,3 +43,5 @@ spec: port: 8081 initialDelaySeconds: 5 timeoutSeconds: 5 + securityContext: + runAsUser: 65534