From 95eb8216745990cf7f555bfd603c490f5133ad53 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Tue, 17 Jul 2018 12:44:05 +0300 Subject: [PATCH] check for crictl executable only for CRI runtime crictl is not used for docker runtime, so this check can be skipped when using docker. --- cmd/kubeadm/app/preflight/checks.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/kubeadm/app/preflight/checks.go b/cmd/kubeadm/app/preflight/checks.go index d473497298..1912344fe2 100644 --- a/cmd/kubeadm/app/preflight/checks.go +++ b/cmd/kubeadm/app/preflight/checks.go @@ -967,11 +967,13 @@ func addCommonChecks(execer utilsexec.Interface, cfg kubeadmapi.CommonConfigurat // non-windows checks if runtime.GOOS == "linux" { + if !isDocker { + checks = append(checks, InPathCheck{executable: "crictl", mandatory: true, exec: execer}) + } checks = append(checks, FileContentCheck{Path: bridgenf, Content: []byte{'1'}}, FileContentCheck{Path: ipv4Forward, Content: []byte{'1'}}, SwapCheck{}, - InPathCheck{executable: "crictl", mandatory: true, exec: execer}, InPathCheck{executable: "ip", mandatory: true, exec: execer}, InPathCheck{executable: "iptables", mandatory: true, exec: execer}, InPathCheck{executable: "mount", mandatory: true, exec: execer},