Skip to content

Commit

Permalink
use default path for two probes (IBM#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Fan authored Aug 19, 2021
1 parent 4aa249d commit 8cad68d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ spec:
livenessProbe:
failureThreshold: 10
httpGet:
path: /readyz
path: /healthz
port: 8081
initialDelaySeconds: 120
periodSeconds: 60
Expand All @@ -339,7 +339,7 @@ spec:
readinessProbe:
failureThreshold: 10
httpGet:
path: /healthz
path: /readyz
port: 8081
initialDelaySeconds: 3
periodSeconds: 20
Expand Down
4 changes: 2 additions & 2 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ spec:
- /manager
readinessProbe:
httpGet:
path: /healthz
path: /readyz
port: 8081
initialDelaySeconds: 3
timeoutSeconds: 3
periodSeconds: 20
failureThreshold: 10
livenessProbe:
httpGet:
path: /readyz
path: /healthz
port: 8081
initialDelaySeconds: 120
timeoutSeconds: 10
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 8cad68d

Please sign in to comment.