From 62ddfd23e8b533934df54bc35336011b09b54cf7 Mon Sep 17 00:00:00 2001 From: frezes Date: Mon, 4 Mar 2024 21:28:08 +0800 Subject: [PATCH] [kube-state-metrics] fix probe check when kubeRbacProxy is enabled Signed-off-by: frezes --- charts/kube-state-metrics/Chart.yaml | 2 +- charts/kube-state-metrics/templates/deployment.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/kube-state-metrics/Chart.yaml b/charts/kube-state-metrics/Chart.yaml index fa3d7dcc0f86..4044b4eb0e78 100644 --- a/charts/kube-state-metrics/Chart.yaml +++ b/charts/kube-state-metrics/Chart.yaml @@ -7,7 +7,7 @@ keywords: - prometheus - kubernetes type: application -version: 5.16.2 +version: 5.16.3 appVersion: 2.10.1 home: https://github.com/kubernetes/kube-state-metrics/ sources: diff --git a/charts/kube-state-metrics/templates/deployment.yaml b/charts/kube-state-metrics/templates/deployment.yaml index 521817291be2..070a28cd67f5 100644 --- a/charts/kube-state-metrics/templates/deployment.yaml +++ b/charts/kube-state-metrics/templates/deployment.yaml @@ -149,7 +149,7 @@ spec: livenessProbe: failureThreshold: {{ .Values.livenessProbe.failureThreshold }} httpGet: - {{- if .Values.kubeRBACProxy.enabled }} + {{- if .Values.hostNetwork.enabled }} host: 127.0.0.1 {{- end }} httpHeaders: @@ -167,7 +167,7 @@ spec: readinessProbe: failureThreshold: {{ .Values.readinessProbe.failureThreshold }} httpGet: - {{- if .Values.kubeRBACProxy.enabled }} + {{- if .Values.hostNetwork.enabled }} host: 127.0.0.1 {{- end }} httpHeaders: