diff --git a/README.md b/README.md index e4677f7a..d270731a 100644 --- a/README.md +++ b/README.md @@ -3,11 +3,11 @@ ## Overview The purpose of liveness probe is to be able to detect liveness of CSI driver -and in case of as a driver's failure report it by returning non zero return code. +and in case of a driver's failure, report it by returning non zero return code. Livenessprobe leverages CSI Probe API call, which must be answered by CSI compatible driver. -Liveness probe is meant to be used in pair with kubelet's LinessProbe hook, which -executes it periodically and check the rerutn code. Non zero return code indicates +Liveness probe is meant to be used in pair with kubelet's LivenessProbe hook, which +executes it periodically and check the return code. Non zero return code indicates to kubelet that pod is not healthy and kubelet schedules pod restart to recover it. See CSI spec for more information about Probe API call. diff --git a/cmd/main.go b/cmd/main.go index 696b64d8..8e18b80c 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -67,7 +67,7 @@ func getCSIConnection() (connection.CSIConnection, error) { return csiConn, nil } -func chekcHealth(w http.ResponseWriter, req *http.Request) { +func checkHealth(w http.ResponseWriter, req *http.Request) { glog.Infof("Request: %s from: %s\n", req.URL.Path, req.RemoteAddr) csiConn, err := getCSIConnection() @@ -95,7 +95,7 @@ func main() { flag.Parse() addr := net.JoinHostPort("0.0.0.0", *healthzPort) - http.HandleFunc("/healthz", chekcHealth) + http.HandleFunc("/healthz", checkHealth) glog.Infof("Serving requests to /healthz on: %s", addr) err := http.ListenAndServe(addr, nil) if err != nil {