Update pkg/minikube/cruntime/cri.go

Co-authored-by: Steven Powell <44844360+spowelljr@users.noreply.github.com>
pull/15463/head
Predrag Rogic 2023-01-12 21:19:44 +00:00 committed by GitHub
parent 23351ba30d
commit 470e7b6fa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ func stopCRIContainers(cr CommandRunner, ids []string) error {
klog.Infof("Stopping containers: %s", ids)
crictl := getCrictlPath(cr)
// bring crictl stop timeout on pair with docker:
// bring crictl stop timeout on par with docker:
// - docker stop --help => -t, --time int Seconds to wait for stop before killing it (default 10)
// - crictl stop --help => --timeout value, -t value Seconds to wait to kill the container after a graceful stop is requested (default: 0)
// to prevent "stuck" containers blocking ports (eg, "[ERROR Port-2379|2380]: Port 2379|2380 is in use" for etcd during "hot" k8s upgrade)