`kubectl` not found. If you need it, try: 'minikube kubectl -- get pods -A'
Had the same problem on Linux.
minikube kubectl -- get po -Akubectl version --client zsh: command not found: kubectl
Minikube installs kubectl
inside of itself. Therefore, you cannot just run the command kubectl
.
To use the kubectl
which you installed via minikube, you have to prepend the command arguments with minikube kubectl --
. For example:
# the same as `kubectl version --client`minikube kubectl -- version --client
For convenience, you may want to add an alias in your shell configuration.
You have installed minikube
, kubectl
is not a part of minikube package.
It says when you do minikube start
that kubectl
is not present and if you need to you can use minikube kubectl
instead.
This is also mentioned here
If you already have kubectl installed, you can now use it to access your shiny new cluster
kubectl
is wrapped around minikube
.
Don't forget to add a --
after minikube kubectl
minikube kubectl -- describe pod kube-scheduler-minikube --namespace kube-systemminikube kubectl -- get pods --namespace kube-system