Couldn’t create the interface used for talking to the container runtime: crictl is required for container runtime: exec: “crictl”: executable file not found in $PATH
报错信息:
[root@master ~]# kubeadm init --config=/root/kubeadm-config.yaml --upload-certs -v 0
[init] Using Kubernetes version: v1.20.0
[preflight] Running pre-flight checks
[preflight] WARNING: Couldn't create the interface used for talking to the container runtime: crictl is required for container runtime: exec: "crictl": executable file not found in $PATH error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR FileExisting-crictl]: crictl not found in system path
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher
解决:
安装crictl
即可: