Skip to content

Commit

Permalink
fixup! OCPBUGS-33620: define *probes for KSM
Browse files Browse the repository at this point in the history
  • Loading branch information
rexagod committed Jun 13, 2024
1 parent be044df commit 312fa45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/kube-state-metrics/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ spec:
command:
- sh
- -c
- 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
- 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
name: kube-state-metrics
ports:
- containerPort: 8081
Expand Down
2 changes: 1 addition & 1 deletion jsonnet/components/kube-state-metrics.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ function(params)
name: 'self',
},
],
local livenessProbePath = 'healthz',
local livenessProbePath = 'livez', // https://github.com/kubernetes/kube-state-metrics/pull/2418
local readinessProbePath = '',
livenessProbe::: {
exec: {
Expand Down

0 comments on commit 312fa45

Please sign in to comment.