Trident installation fails with error "could not find the Kubernetes CLI"
Applies to
- NetApp Trident 19.x
- NetApp Trident 20.x
Issue
Trident installation fails
$ ./tridentctl install -n trident FATA Install pre-checks failed; could not initialize Kubernetes client; could not find the Kubernetes CLI;
But when running the kubectl command, it works just fine.
$ kubectl version Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.0", GitCommit: "70132b0f130acc0bed193d9ba59dd186f0e634cf", GitTreeState:"clean", BuildDate:"2019-12-07T21:20:10Z", GoVersion:"go1.13.4", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"15+", GitVersion:"v1.15.11-eks-af3caf", GitCommit: "af3caf6136cd355f467083651cc1010a499f59b1", GitTreeState:"clean", BuildDate:"2020-03-27T21:51:36Z", GoVersion:"go1.12.17", Compiler:"gc", Platform:"linux/amd64"}