Merge pull request #8154 from markpeek/markpeek-registry-health-check

Switch registry health check to a 200 response url
This commit is contained in:
Daniel Jiang 2019-07-03 10:29:35 +08:00 committed by GitHub
commit 6f166bc02c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -212,10 +212,10 @@ func jobserviceHealthChecker() health.Checker {
}
func registryHealthChecker() health.Checker {
url := getRegistryURL() + "/v2"
url := getRegistryURL() + "/"
timeout := 60 * time.Second
period := 10 * time.Second
checker := HTTPStatusCodeHealthChecker(http.MethodGet, url, nil, timeout, http.StatusUnauthorized)
checker := HTTPStatusCodeHealthChecker(http.MethodGet, url, nil, timeout, http.StatusOK)
return PeriodicHealthChecker(checker, period)
}