diff --git a/cmd/kubeadm/app/util/runtime/runtime.go b/cmd/kubeadm/app/util/runtime/runtime.go index 0d0bf976eaa..5610b4bed87 100644 --- a/cmd/kubeadm/app/util/runtime/runtime.go +++ b/cmd/kubeadm/app/util/runtime/runtime.go @@ -85,7 +85,10 @@ func (runtime *CRIRuntime) IsRunning() error { // ListKubeContainers lists running k8s CRI pods func (runtime *CRIRuntime) ListKubeContainers() ([]string, error) { - out, err := runtime.crictl("pods", "-q").CombinedOutput() + // Disable debug mode regardless how the crictl is configured so that the debug info won't be + // iterpreted to the Pod ID. + args := []string{"-D=false", "pods", "-q"} + out, err := runtime.crictl(args...).CombinedOutput() if err != nil { return nil, errors.Wrapf(err, "output: %s, error", string(out)) }