Kubernetes1.9.0 kubeadm init - crictl not found in system path

12/20/2017

I am setting up kubernetes cluster on a Centos 7 machine, and the kubeadm init command gives me the below warning message.

[init] Using Kubernetes version: v1.9.0
[init] Using Authorization modes: [Node RBAC]
[preflight] Running pre-flight checks.
        [WARNING SystemVerification]: docker version is greater than the most recently validated version. Docker version: 17.09.1-ce. Max validated version: 17.03
        [WARNING FileExisting-crictl]: crictl not found in system path

How can I fix this crictl not found in system path warning? Do I need to install any additional software?

-- sfgroups
kubeadm
kubernetes

2 Answers

12/20/2017

Yes, you need additional software. crictl is part of the cri-tools repo on github.

At least when I encountered this problem (Dec 20, 2017), cri-tools isn't available on kubernete's package repo, so I had to download source and build it. cri-tools is written in go, so you may need to install golang on your system as well.

-- Dan Homerick
Source: StackOverflow

4/8/2018

I installed crictl with

   go get github.com/kubernetes-incubator/cri-tools/cmd/crictl

If you don have go on your system, you could install crictl from

https://github.com/kubernetes-incubator/cri-tools/releases

-- christian
Source: StackOverflow