Reputation: 12392
I restarted my mac (Mac OS High Sierra) and now Visual Studio code can't find kubectl binary even it is installed via brew.
$ which kubectl
/usr/local/bin/kubectl
The weird thing is that it could find kubectl before I restarted my laptop.
Upvotes: 6
Views: 3950
Reputation: 139
Find your "settings.json" file, first.
Edit the values of these two keys:
"vs-kubernetes": {
.
"vs-kubernetes.kubectl-path.${your-os}": "/usr/local/bin/kubectl",
.
.
"vscode-kubernetes.kubectl-path-${your-os}": "/usr/local/bin/kubectl",
.
},
Tips:
kubectl
path in unix-like OS with $ which kubectl
command${your-os}
var are:
linux
mac
windows
Upvotes: 1
Reputation: 184
adding the below config is vscode settings.json may resolve this
"vs-kubernetes": {
"vscode-kubernetes.minikube-path.mac": "/path/to/minikube",
"vscode-kubernetes.kubectl-path.mac": "/path/to/kubectl",
"vscode-kubernetes.helm-path.mac" : "/path/to/helm"
}
Upvotes: 4