Skip to content

Commit 312fa45

Browse files
committed
fixup! OCPBUGS-33620: define *probes for KSM
1 parent be044df commit 312fa45

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

assets/kube-state-metrics/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ spec:
6262
command:
6363
- sh
6464
- -c
65-
- if [ -x "$(command -v curl)" ]; then exec curl -s -I -f http://localhost:8081/healthz; elif [ -x "$(command -v wget)" ]; then exec wget --quiet --tries=1 --spider http://localhost:8081/healthz; else exit 1; fi
65+
- if [ -x "$(command -v curl)" ]; then exec curl -s -I -f http://localhost:8081/livez; elif [ -x "$(command -v wget)" ]; then exec wget --quiet --tries=1 --spider http://localhost:8081/livez; else exit 1; fi
6666
name: kube-state-metrics
6767
ports:
6868
- containerPort: 8081

jsonnet/components/kube-state-metrics.libsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ function(params)
278278
name: 'self',
279279
},
280280
],
281-
local livenessProbePath = 'healthz',
281+
local livenessProbePath = 'livez', // https://github.com/kubernetes/kube-state-metrics/pull/2418
282282
local readinessProbePath = '',
283283
livenessProbe::: {
284284
exec: {

0 commit comments

Comments
 (0)