mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-25 19:43:22 +00:00
kubeadm: add preflight check for losetup on Linux nodes
kubeadm: remove preflight check for nsenter on Linux nodes Signed-off-by: carlory <baofa.fan@daocloud.io>
This commit is contained in:
parent
3c229949f9
commit
00a7849ef9
@ -82,8 +82,11 @@ func addExecChecks(checks []Checker, execer utilsexec.Interface, k8sVersion stri
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
checks = append(checks,
|
// kubelet requires losetup to be present in PATH for block volume support since 1.9.0.
|
||||||
InPathCheck{executable: "mount", mandatory: true, exec: execer},
|
// (ref: https://github.com/kubernetes/kubernetes/pull/51494)
|
||||||
InPathCheck{executable: "nsenter", mandatory: true, exec: execer})
|
checks = append(checks, InPathCheck{executable: "losetup", mandatory: true, exec: execer})
|
||||||
|
|
||||||
|
// kubelet requires mount to be present in PATH for in-tree volume plugins.
|
||||||
|
checks = append(checks, InPathCheck{executable: "mount", mandatory: true, exec: execer})
|
||||||
return checks
|
return checks
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user