Skip to content

Commit 216422a

Browse files
committed
If kubeRBACProxy is enabled do not enable Probes
Signed-off-by: yellowhat <[email protected]>
1 parent b936ff2 commit 216422a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

charts/kube-state-metrics/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ keywords:
77
- prometheus
88
- kubernetes
99
type: application
10-
version: 6.3.0
10+
version: 6.3.1
1111
# renovate: github-releases=kubernetes/kube-state-metrics
1212
appVersion: 2.17.0
1313
home: https://github.com/kubernetes/kube-state-metrics/

charts/kube-state-metrics/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ spec:
168168
name: metrics
169169
{{- end }}
170170
{{- end }}
171+
{{- if not .Values.kubeRBACProxy.enabled }}
171172
{{- if .Values.startupProbe.enabled }}
172173
startupProbe:
173174
failureThreshold: {{ .Values.startupProbe.failureThreshold }}
@@ -239,6 +240,7 @@ spec:
239240
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
240241
successThreshold: {{ .Values.readinessProbe.successThreshold }}
241242
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
243+
{{- end }}
242244
resources:
243245
{{ toYaml .Values.resources | indent 10 }}
244246
{{- if .Values.containerSecurityContext }}

0 commit comments

Comments
 (0)