mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 02:34:03 +00:00
Merge pull request #127072 from dims/switch-back-to-localhost-from-127.0.0.1
Switch back to localhost from 127.0.0.1 for daemon restart tests
This commit is contained in:
commit
e5bafe2bed
@ -107,10 +107,10 @@ func (r *RestartDaemonConfig) waitUp(ctx context.Context) {
|
||||
var healthzCheck string
|
||||
if r.enableHTTPS {
|
||||
healthzCheck = fmt.Sprintf(
|
||||
"curl -sk -o %v -I -w \"%%{http_code}\" https://127.0.0.1:%v/healthz", nullDev, r.healthzPort)
|
||||
"curl -sk -o %v -I -w \"%%{http_code}\" https://localhost:%v/healthz", nullDev, r.healthzPort)
|
||||
} else {
|
||||
healthzCheck = fmt.Sprintf(
|
||||
"curl -s -o %v -I -w \"%%{http_code}\" http://127.0.0.1:%v/healthz", nullDev, r.healthzPort)
|
||||
"curl -s -o %v -I -w \"%%{http_code}\" http://localhost:%v/healthz", nullDev, r.healthzPort)
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user