We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ba9c18 commit 6c24725Copy full SHA for 6c24725
pkg/addon-operator/http_server.go
@@ -25,7 +25,7 @@ func (op *AddonOperator) registerReadyzRoute() {
25
} else if leader := op.LeaderElector.GetLeader(); len(leader) > 0 {
26
ctx, cancel := context.WithTimeout(context.Background(), time.Second*3)
27
defer cancel()
28
- req, err := http.NewRequestWithContext(ctx, http.MethodGet, fmt.Sprintf("http://%s:%s", leader, app.ListenPort), nil)
+ req, err := http.NewRequestWithContext(ctx, http.MethodGet, fmt.Sprintf("http://%s:%s/readyz", leader, app.ListenPort), nil)
29
if err != nil {
30
w.WriteHeader(http.StatusInternalServerError)
31
_, _ = w.Write([]byte("HA mode is enabled but couldn't craft a request to the leader\n"))
0 commit comments