From 8cad68d97deb7371ac7d394e3776bb78f544d359 Mon Sep 17 00:00:00 2001 From: Daniel Fan Date: Thu, 19 Aug 2021 11:36:43 -0400 Subject: [PATCH] use default path for two probes (#607) --- .../ibm-common-service-operator.clusterserviceversion.yaml | 4 ++-- config/manager/manager.yaml | 4 ++-- main.go | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bundle/manifests/ibm-common-service-operator.clusterserviceversion.yaml b/bundle/manifests/ibm-common-service-operator.clusterserviceversion.yaml index 669d09c5..222c9f94 100644 --- a/bundle/manifests/ibm-common-service-operator.clusterserviceversion.yaml +++ b/bundle/manifests/ibm-common-service-operator.clusterserviceversion.yaml @@ -330,7 +330,7 @@ spec: livenessProbe: failureThreshold: 10 httpGet: - path: /readyz + path: /healthz port: 8081 initialDelaySeconds: 120 periodSeconds: 60 @@ -339,7 +339,7 @@ spec: readinessProbe: failureThreshold: 10 httpGet: - path: /healthz + path: /readyz port: 8081 initialDelaySeconds: 3 periodSeconds: 20 diff --git a/config/manager/manager.yaml b/config/manager/manager.yaml index 87d5b804..2fe6174b 100644 --- a/config/manager/manager.yaml +++ b/config/manager/manager.yaml @@ -41,7 +41,7 @@ spec: - /manager readinessProbe: httpGet: - path: /healthz + path: /readyz port: 8081 initialDelaySeconds: 3 timeoutSeconds: 3 @@ -49,7 +49,7 @@ spec: failureThreshold: 10 livenessProbe: httpGet: - path: /readyz + path: /healthz port: 8081 initialDelaySeconds: 120 timeoutSeconds: 10 diff --git a/main.go b/main.go index 533c3ae9..cc2fd9f7 100644 --- a/main.go +++ b/main.go @@ -193,11 +193,11 @@ func main() { } } - if err := mgr.AddHealthzCheck("health", healthz.Ping); err != nil { + if err := mgr.AddHealthzCheck("healthz", healthz.Ping); err != nil { klog.Errorf("unable to set up health check: %v", err) os.Exit(1) } - if err := mgr.AddReadyzCheck("check", healthz.Ping); err != nil { + if err := mgr.AddReadyzCheck("readyz", healthz.Ping); err != nil { klog.Errorf("unable to set up ready check: %v", err) os.Exit(1) }