File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ const (
2020 // KSMServiceName -
2121 KSMServiceName = "kube-state-metrics"
2222
23- // KSMHealthPort -
24- KSMHealthPort = 8081
23+ // KSMReadyPort - (/readyz)
24+ KSMReadyPort = 8081
2525
26- // KSMMetricsPort -
26+ // KSMMetricsPort - (/metrics, /healthz, /livez)
2727 KSMMetricsPort = 8080
2828)
2929
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ func KSMService(
4949 Name : "http-metrics" ,
5050 },
5151 {
52- Port : KSMHealthPort ,
52+ Port : KSMReadyPort ,
5353 Name : "telemetry" ,
5454 },
5555 }
Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ func KSMStatefulSet(
4242 livenessProbe := & corev1.Probe {
4343 ProbeHandler : corev1.ProbeHandler {
4444 HTTPGet : & corev1.HTTPGetAction {
45- Path : "/healthz " ,
46- Port : intstr .FromInt (KSMHealthPort ),
45+ Path : "/livez " ,
46+ Port : intstr .FromInt (KSMMetricsPort ),
4747 },
4848 },
4949 InitialDelaySeconds : 5 ,
@@ -53,8 +53,8 @@ func KSMStatefulSet(
5353 readinessProbe := & corev1.Probe {
5454 ProbeHandler : corev1.ProbeHandler {
5555 HTTPGet : & corev1.HTTPGetAction {
56- Path : "/" ,
57- Port : intstr .FromInt (KSMMetricsPort ),
56+ Path : "/readyz " ,
57+ Port : intstr .FromInt (KSMReadyPort ),
5858 },
5959 },
6060 InitialDelaySeconds : 5 ,
@@ -138,7 +138,7 @@ func KSMStatefulSet(
138138 Name : "http-metrics" ,
139139 },
140140 {
141- ContainerPort : KSMHealthPort ,
141+ ContainerPort : KSMReadyPort ,
142142 Name : "telemetry" ,
143143 },
144144 },
You can’t perform that action at this time.
0 commit comments